export declare const LOCAL_REFERENCE_DOWNLOAD_VERSION = "local-reference-download-v1"; /** Local-only setting, never accept a filename/directory from a website request. */ export declare function referenceDownloadDirectory(): Promise; /** Only explicit download-extension filenames for this exact creator and ID. * A matching filename is user-provided provenance, not a platform/content authenticity certificate. */ export declare function matchesReferenceDownload(fileName: string, sourceUrl: string): boolean; export declare function readDownloadedReference(sourceUrl: string, workDir: string, maxBytes: number, directory?: string): Promise<{ file: string; transcript: string; provenance: string; } | null>; /** Wait only for the exact completed file; requesting the browser again could duplicate a download. */ export declare function recoverReferenceWithBrowser(sourceUrl: string, workDir: string, maxBytes: number, start: (sourceUrl: string) => Promise, directory?: string, timeoutMs?: number): Promise<{ file: string; transcript: string; provenance: string; }>;