import type { ConversionFileResult, ConversionOptions, ConvertDocumentResponse } from "../types/api"; import type { DoclingWeb, SafeConversionResult, SafeFileConversionResult } from "../types/client"; import type { DoclingWebClientConfig, ImageInput, WebClientEvents, WebOCRResult, WebProcessOptions } from "../types/web"; export declare class DoclingWebClient implements DoclingWeb { readonly type: "web"; private config; private events; private worker; private isReady; private isProcessing; constructor(config: DoclingWebClientConfig); get ready(): boolean; get processing(): boolean; initialize(): Promise; destroy(): void; on(event: K, callback: (data: WebClientEvents[K]) => void): this; off(event: K, callback: (data: WebClientEvents[K]) => void): this; clearCache(): Promise; getCacheSize(): Promise; processImage(input: ImageInput, options?: WebProcessOptions): Promise; convert(file: Uint8Array | string, filename: string, options?: ConversionOptions): Promise; extractText(file: Uint8Array | string, filename: string, options?: Omit): Promise; toHtml(file: Uint8Array | string, filename: string, options?: Omit): Promise; toMarkdown(file: Uint8Array | string, filename: string, options?: Omit): Promise; convertDocument(file: Uint8Array | string, filename: string, options: ConversionOptions): Promise; process(file: Uint8Array | string, filename: string, options?: ConversionOptions): Promise; convertToFile(_file: Uint8Array | string, _filename: string, _options: ConversionOptions): Promise; safeConvert(file: Uint8Array | string, filename: string, options?: ConversionOptions): Promise; safeConvertToFile(_file: Uint8Array | string, _filename: string, _options: ConversionOptions): Promise; private ensureInitialized; private createWorkerBlobUrl; private processFilePages; private combineResults; private imageInputToDataUrl; private blobToDataUrl; private base64ToUint8Array; }