export declare const YT_DLP_PROGRESS_TEMPLATE = "progress:%(progress.downloaded_bytes)s|%(progress.total_bytes)s|%(progress.total_bytes_estimate)s";
export type YtDlpMediaMetadata = {
    durationSeconds: number | null;
    viewCount: number | null;
};
export declare function buildYtDlpDownloadArgs({ url, output, format, extractAudio, extraArgs, progress, }: {
    url: string;
    output: string;
    format: string;
    extractAudio: boolean;
    extraArgs?: string[];
    progress: boolean;
}): string[];
export declare function parseYtDlpProgressLine(line: string): {
    downloadedBytes: number;
    totalBytes: number | null;
} | null;
export declare function parseYtDlpMetadataOutput(stdout: string): YtDlpMediaMetadata | null;
