import type { SenseVoiceLanguage } from './asr.js'; export type AsrStreamResult = { text: string; lang: string; emotion: string; event: string; tokens: string[]; timestamps: number[]; isFinal: boolean; }; export type VadOptions = { modelPath?: string | undefined; threshold?: number; minSpeechDuration?: number; minSilenceDuration?: number; maxSpeechDuration?: number; enableExternalBuffer?: boolean; }; export type StreamAsrOptions = { sampleRate?: number; asrIntervalMs?: number; language?: SenseVoiceLanguage; modelPath?: string | undefined; vad?: boolean | VadOptions; onResult: (result: AsrStreamResult) => void; }; export declare function streamAsr(audio: AsyncIterable, options: StreamAsrOptions): Promise;