2026-05-13 17:24:10 +02:00
|
|
|
export interface YtDlpResult {
|
|
|
|
|
filePath: string;
|
|
|
|
|
filename: string;
|
|
|
|
|
title: string;
|
|
|
|
|
}
|
2026-05-15 04:10:06 +02:00
|
|
|
export type YtDlpProgress = (percent: number) => void;
|
2026-05-13 17:24:10 +02:00
|
|
|
export declare function isYtDlpAvailable(): boolean;
|
2026-05-15 04:10:06 +02:00
|
|
|
export declare function downloadVideo(url: string, outputDir: string, onProgress?: YtDlpProgress): Promise<YtDlpResult>;
|