export interface FfmpegRunOptions { /** Path or basename of the ffmpeg binary. Defaults to `ffmpeg` (resolved via PATH). */ ffmpegPath?: string; /** Wall-clock cap on the ffmpeg process (ms). Default 5 minutes. */ timeoutMs?: number; /** Cap on captured stderr bytes (used in error messages). Default 8 KiB. */ maxStderrBytes?: number; } export declare class FfmpegFailedError extends Error { readonly stderr: string; readonly exitCode: number | null; constructor(message: string, stderr: string, exitCode: number | null); } export declare class FfmpegTimeoutError extends Error { constructor(message: string); } /** * Runs ffmpeg with the given args, feeding `input` to stdin and returning * stdout as a Buffer. stderr is captured up to a byte cap and surfaced in any * thrown error. Times out after `timeoutMs` (default 5 min). */ export declare function runFfmpeg(args: string[], input: Buffer, opts?: FfmpegRunOptions): Promise; /** * Runs `ffmpeg -version` once to verify ffmpeg is on PATH. Intended to be * cached at server start and not re-probed. */ export declare function probeFfmpegAvailable(ffmpegPath?: string): Promise; //# sourceMappingURL=ffmpeg.d.ts.map