import { type DecodedPcmAudio } from '../local/wav.js'; export type AudioFormat = 'wav' | 'webm' | 'ogg' | 'mp3' | 'mp4' | 'unknown'; export declare class AudioNormalizationError extends Error { readonly code = "unsupported_audio_codec"; constructor(message: string, options?: ErrorOptions); } export interface AudioDecoderStatus { available: boolean; command: string; error?: string; } /** Reports whether compressed browser/mobile recordings can be decoded on this host. */ export declare function getAudioDecoderStatus(): AudioDecoderStatus; export declare function detectAudioFormat(buffer: Buffer): AudioFormat; export declare function decodeAudioToMonoFloat32(input: { buffer: Buffer; signal?: AbortSignal; }): Promise; /** Decodes a recording into bounded PCM WAV files and removes all temporary files afterwards. */ export declare function forEachNormalizedAudioSegment(input: { filePath: string; segmentSeconds?: number; maxDurationSeconds?: number; signal?: AbortSignal; }, consume: (buffer: Buffer, index: number) => Promise): Promise;