export interface DashScopeAsrOptions { readonly audio: Uint8Array; readonly mimeType: string; readonly language: string; readonly endpoint: string; readonly model: string; readonly credential: string; readonly signal: AbortSignal; } export declare function isQwen3AsrFlashModel(model: string): boolean; /** Transport families that cannot be reached through the synchronous adapter. */ export type BailianModelTransportConflict = 'async-file' | 'filetrans' | 'streaming' | 'message' | 'realtime'; /** * The upgraded Model Studio console lists every member of an ASR family side by * side. Only the plain synchronous id belongs in this adapter: the other * variants take a public file URL, an asynchronous task, or a WebSocket * handshake. Posting one of them to the synchronous endpoint fails later with * an opaque provider error such as `url error, please check url`, which reads * like a plugin defect instead of a model-selection mistake. */ export declare function bailianModelTransportConflict(model: string): BailianModelTransportConflict | undefined; export declare function audioFormatFromMime(mimeType: string): string; export declare function languageCode(language: string): string; export declare function dashscopeRequestBody(model: string, dataUri: string, mimeType: string, language: string): Record; export declare function extractDashScopeTranscript(parsed: unknown): string; export declare function transcribeDashScopeAsr(options: DashScopeAsrOptions): Promise; export declare function dashScopeErrorFields(parsed: unknown): { code: string; message: string; }; /** Whether the provider rejected the request because the model id is unknown. */ export declare function isDashScopeModelNotFound(parsed: unknown): boolean; export declare function dashScopeErrorDetail(parsed: unknown, status: number): string; export declare function isDashScopeEmptyAudioError(parsed: unknown, status: number): boolean;