/** * ext-document-kreuzberg: document text extraction for Veryfront. * * Provides the `DocumentExtractor` contract via kreuzberg. Deno extraction can * run inside an isolated Worker so a hung WASM call does not block the server. * * @module extensions/ext-document-kreuzberg */ import "../../../_dnt.polyfills.js"; import type { ExtensionFactory, ExtensionLogger } from "veryfront/extensions"; import type { DocumentExtractionOptions, DocumentExtractor, KreuzbergExtractor } from "veryfront/extensions/compat"; export declare const NATIVE_PROGRESS_IDLE_TIMEOUT_MS = 120000; export declare const NATIVE_PROGRESS_HARD_TIMEOUT_MS: number; /** Maximum time to wait for fallback worker extraction before aborting. */ export declare const EXTRACTION_TIMEOUT_MS: number; declare function extractInWorkerDeno(buffer: ArrayBuffer, mimeType: string): Promise; export interface KreuzbergDocumentExtractorDeps { isDenoRuntime?: boolean; loadNativeKreuzberg?: () => Promise; extractInWorkerDeno?: typeof extractInWorkerDeno; extractWithNativeProgressDeno?: typeof extractWithNativeProgressDeno; logger?: Pick; } declare function extractWithNativeProgressDeno(buffer: ArrayBuffer, mimeType: string, options: DocumentExtractionOptions): Promise; export declare class KreuzbergDocumentExtractor implements DocumentExtractor { private readonly deps; constructor(deps?: KreuzbergDocumentExtractorDeps); importKreuzberg(): Promise; extractInWorker(buffer: ArrayBuffer, mimeType: string, options?: DocumentExtractionOptions): Promise; } declare const extDocumentKreuzberg: ExtensionFactory; export default extDocumentKreuzberg; //# sourceMappingURL=index.d.ts.map