export declare function buildYtDlpCookiesArgs(cookiesFromBrowser?: string | null): string[];
export declare function buildSlidesMediaCacheKey(url: string): string;
export declare function formatBytes(bytes: number): string;
export declare function downloadYoutubeVideo(options: {
    ytDlpPath: string;
    url: string;
    timeoutMs: number;
    format: string;
    cookiesFromBrowser?: string | null;
    onProgress?: ((percent: number, detail?: string) => void) | null;
}): Promise<{
    filePath: string;
    cleanup: () => Promise<void>;
}>;
export declare function downloadRemoteVideo(options: {
    url: string;
    timeoutMs: number;
    fetchImpl?: typeof fetch;
    onProgress?: ((percent: number, detail?: string) => void) | null;
}): Promise<{
    filePath: string;
    cleanup: () => Promise<void>;
}>;
export declare function resolveYoutubeStreamUrl(options: {
    ytDlpPath: string;
    url: string;
    timeoutMs: number;
    format: string;
    cookiesFromBrowser?: string | null;
}): Promise<string>;
