export interface VoiceModelDownloadOptions { /** The URL to fetch the model from. */ readonly url: string; /** The final on-disk path (e.g. .../en_US-glados-high.onnx). */ readonly destPath: string; /** Injectable fetch (real fetch by default; tests pass a mock). */ readonly fetchImpl?: typeof fetch | undefined; /** Reject downloads smaller than this many bytes (default 4096). */ readonly minBytes?: number | undefined; /** Abort the download after this many ms (default 120000). */ readonly timeoutMs?: number | undefined; /** * Verify the ONNX protobuf magic (first byte 0x08, the ir_version field tag). * Defaults to true when destPath ends in `.onnx`. Set false for `.json` configs. */ readonly expectOnnxMagic?: boolean | undefined; } export type VoiceModelDownloadResult = { readonly ok: true; readonly path: string; readonly bytes: number; } | { readonly ok: false; readonly error: string; }; /** * Download a voice model atomically with verification. Never leaves a partial * file at `destPath`; returns a structured result rather than throwing. */ export declare function downloadVoiceModel(options: VoiceModelDownloadOptions): Promise; //# sourceMappingURL=model-download.d.ts.map