export interface ResultSection { id: string; title: string; offset: number; length: number; locator: Record; } export interface ResultPreparation { database: string; documentId: string; lease: string; file?: string; expectedSha256?: string; title: string; mimeType?: string; text?: string; } export declare const RESULT_PARSER_VERSION = 2; export declare const resultFingerprint: (value: { size: number; mtimeMs: number; ctimeMs: number; }) => string; /** Runs only in a bounded background worker. No document code or macros are executed. */ export declare function extractResult(input: Pick): Promise<{ unsupported: true; reason: string; text?: undefined; sections?: undefined; limitations?: undefined; fingerprint?: undefined; revision?: undefined; } | { unsupported: false; text: string; sections: ResultSection[]; limitations: string[]; fingerprint: string | undefined; revision: string; reason?: undefined; }>; export declare function prepareResultDocument(input: ResultPreparation): Promise;