import type { FileSystem } from "../utils/file-system.js";
export declare class MediaDownloadError extends Error {
    readonly kind: "fetch" | "write";
    readonly url: string;
    readonly outputPath: string;
    constructor(message: string, options: {
        kind: "fetch" | "write";
        url: string;
        outputPath: string;
    });
}
export declare function downloadToFile(options: {
    url: string;
    outputPath: string;
    fs: FileSystem;
    fetcher?: typeof fetch;
}): Promise<void>;
