Files
NapCatQQ/.pnpm-store/v3/files/54/fca8d5b764c4204f2e42b2a0bac018dbb648d763e5c4ef8ff9edf94f96dee59b21a5fa286ccd11e916c7cdc34d18e94126a2a47389295312072f3adc0f65c1
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
635 B
Plaintext

import { LogWrapper } from '../../helper/log';
/**
* 下载并设置FFmpeg
* @param destDir 目标安装目录,默认为用户临时目录下的ffmpeg文件夹
* @param tempDir 临时文件目录,默认为系统临时目录
* @returns 返回ffmpeg可执行文件的路径,如果失败则返回null
*/
export declare function downloadFFmpeg(destDir?: string, tempDir?: string, progressCallback?: (percent: number, stage: string) => void): Promise<string | null>;
export declare function downloadFFmpegIfNotExists(log: LogWrapper): Promise<{
path: null;
reset: boolean;
} | {
path: string;
reset: boolean;
}>;