Certificate manager built on Laravel 13, Livewire 4, and Flux. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
15 lines
465 B
PHP
15 lines
465 B
PHP
<?php
|
|
|
|
namespace App\Ocr;
|
|
|
|
interface OcrProviderInterface
|
|
{
|
|
/**
|
|
* Analyze a stored document and return structured field suggestions.
|
|
*
|
|
* @param string $filePath Absolute path to the file on the local filesystem.
|
|
* @param string|null $apiKey The user's API key for the provider, if any.
|
|
* @return array{title?: string|null, expires_at?: string|null}
|
|
*/
|
|
public function analyze(string $filePath, ?string $apiKey): array;
|
|
}
|