import type { SpeechToTextResult } from './types.js'; /** * Fluent builder for speech-to-text transcription. * * @example * const result = await Transcription.fromBytes(bytes).language('en').generate() * * For Node-only path-based loading, see `@gemstack/ai-sdk/node`: * const t = await transcribeFromPath('./audio.mp3') * * @example Failover across providers * const result = await Transcription.fromBytes(bytes) * .model('openai/whisper-1') * .failover('google/gemini-2.0-flash-exp') * .generate() */ export declare class Transcription { private readonly _audio; private _model?; private _language?; private _prompt?; private _failover; private constructor(); /** Create a Transcription from raw audio bytes */ static fromBytes(bytes: Uint8Array): Transcription; /** @deprecated Use fromBytes(). Buffer extends Uint8Array, so this is a thin alias. */ static fromBuffer(buffer: Uint8Array): Transcription; /** Set the STT model (e.g. 'openai/whisper-1') */ model(m: string): this; /** * Provider/model strings to try if the primary fails. * Tried in order; the first to succeed wins. */ failover(...models: string[]): this; /** Set the language hint (ISO-639-1, e.g. 'en', 'es', 'fr') */ language(l: string): this; /** Set an optional prompt to guide transcription style */ prompt(p: string): this; /** Run the transcription */ generate(): Promise; } //# sourceMappingURL=transcription.d.ts.map