interface WhisperStreamCallbacks { onStatusChange?: (status: string) => any; onTranscription?: (transcription: string) => any; onError?: (error: string) => any; onInfo?: (info: string) => any; } export interface WhisperStreamInstance extends WhisperStreamCallbacks { context: AudioContext | null; audio: Float32Array | null; audio0: Float32Array | null; doRecording: boolean; startTime: number; mediaRecorder: MediaRecorder | null; intervalUpdate: any; transcribedAll: string; nLines: number; instance: any; start: () => Promise; stop: () => Promise; } export interface WhisperStreamOptions extends WhisperStreamCallbacks { urlPrefix?: string; model?: "tiny.en" | "small.en" | "base.en"; onProgress?: (progress: number) => void; } export declare function createWhisperStream(options?: WhisperStreamOptions): Promise; export declare function startRecording(whisperStream: WhisperStreamInstance): Promise; export declare function stopRecording(whisperStream: WhisperStreamInstance): Promise; export {};