import type { WhisperContext, WhisperContextOptions, VadContext, VadContextOptions, TranscribeOptions, TranscribeResult } from "./types"; export type { WhisperContextOptions, VadContextOptions, TranscribeOptions, TranscribeOptionsBase, TranscribeOptionsFile, TranscribeOptionsBuffer, TranscribeResult, TranscriptSegment, WhisperContext, VadContext, WhisperContextConstructor, VadContextConstructor, } from "./types"; export declare const WhisperContextClass: import("./types").WhisperContextConstructor; export declare const VadContextClass: import("./types").VadContextConstructor; export declare const transcribe: (context: WhisperContext, options: TranscribeOptions, callback: import("./types").TranscribeCallback) => void; export declare const transcribeAsync: (context: WhisperContext, options: TranscribeOptions) => Promise; /** * Create a new WhisperContext * * @example * ```typescript * const ctx = createWhisperContext({ * model: './models/ggml-base.en.bin', * use_gpu: true, * use_coreml: true, * }); * * const result = await transcribeAsync(ctx, { * fname_inp: './audio.wav', * language: 'en', * }); * * console.log(result.segments); * ctx.free(); * ``` */ export declare function createWhisperContext(options: WhisperContextOptions): WhisperContext; /** * Create a new VadContext for voice activity detection * * @example * ```typescript * const vad = createVadContext({ * model: './models/ggml-silero-v6.2.0.bin', * threshold: 0.5, * }); * * const samples = new Float32Array(512); * const probability = vad.process(samples); * * vad.free(); * ``` */ export declare function createVadContext(options: VadContextOptions): VadContext; declare const _default: { WhisperContext: import("./types").WhisperContextConstructor; VadContext: import("./types").VadContextConstructor; transcribe: (context: WhisperContext, options: TranscribeOptions, callback: import("./types").TranscribeCallback) => void; transcribeAsync: (context: WhisperContext, options: TranscribeOptions) => Promise; createWhisperContext: typeof createWhisperContext; createVadContext: typeof createVadContext; }; export default _default; //# sourceMappingURL=index.d.ts.map