9 lines
325 B
TypeScript
9 lines
325 B
TypeScript
export interface YtDlpResult {
|
|
filePath: string;
|
|
filename: string;
|
|
title: string;
|
|
}
|
|
export type YtDlpProgress = (percent: number) => void;
|
|
export declare function isYtDlpAvailable(): boolean;
|
|
export declare function downloadVideo(url: string, outputDir: string, onProgress?: YtDlpProgress): Promise<YtDlpResult>;
|