import ffmpeg from "fluent-ffmpeg";
import { PassThrough } from "stream";
export declare function bufferToStream(buf: Buffer): PassThrough;
export declare function runFfmpegToBuffer(cmd: ffmpeg.FfmpegCommand, fmt: "wav" | "mp3" | "flac"): Promise<Buffer>;
/**
 * Vérifie qu’un binaire existe et contient des données.
 * Utilise la forme `function` (et non une arrow) pour satisfaire TS2775.
 */
export declare function ensureBinaryExists<T extends {
    data?: string;
} | undefined>(bin: T, prop: string): asserts bin is NonNullable<T> & {
    data: string;
};
export declare const getExtensionFromName: (name: string) => "wav" | "mp3" | "flac";
export declare function probeDurationBuffer(buf: Buffer, fmt: "wav" | "mp3" | "flac"): Promise<number>;
