export type ProgressCallback = (p: number) => void; export type PrintCallback = (text: string, ...args: any[]) => void; export type ReadyCallback = (dst: string, buf: Uint8Array) => void; export type CancelCallback = () => void; export declare function convertTypedArray(src: ArrayBufferView, type: any): ArrayBufferView; export declare function clearCache(): Promise; export declare function loadRemote(url: string, dst: string, size_mb: number, cbProgress: ProgressCallback, cbReady: ReadyCallback, cbCancel: CancelCallback, cbPrint: PrintCallback): Promise; export declare function getWhisperModule(urlPrefix?: string, model?: string, Module?: any): any; export declare function loadModel(modelName: "tiny.en" | "small.en" | "base.en", urlPrefix?: string, onProgress?: (progress: number) => void): Promise;