import type { Transcriber } from "./core/transcribe.js"; type Fetch = typeof globalThis.fetch; type Common = { /** The key for each request, read when the request is made. */ readonly apiKey: () => string | undefined; /** The list price per audio minute, when the host knows it; absent, prices are unknown (null). */ readonly usdPerMinute?: number; readonly fetch?: Fetch; }; /** What `falTranscriber` takes: the key function and the options every transcriber has, the model, the queue's address and how the key is sent. */ export type FalTranscriberOptions = Common & { /** Default `fal-ai/elevenlabs/speech-to-text/scribe-v2`. */ readonly model?: string; /** Default `https://queue.fal.run`; a pass-through's address takes its place, and fal's own addresses in its * answers are rewritten to it. */ readonly queueUrl?: string; /** `key` sends `Authorization: Key ` (fal's own); `bearer` sends `Authorization: Bearer ` (a pass-through). */ readonly auth?: "key" | "bearer"; /** Default one second. */ readonly pollMs?: number; /** Default ten minutes: a job with no answer by then fails the request. */ readonly timeoutMs?: number; }; /** fal's queue: the audio goes inline as a data URI. fal states no size limit; 2.5 MB (10 minutes 25 seconds at 32 kbps; * a ten-minute piece ffmpeg cuts runs a little over its 2.4 MB) was measured to work, 4.8 MB to fail. */ export declare function falTranscriber(options: FalTranscriberOptions): Transcriber; /** What `elevenLabsTranscriber` takes: the key function and the options every transcriber has, the model and the address. */ export type ElevenLabsTranscriberOptions = Common & { /** Default `scribe_v2`. */ readonly model?: string; /** Default `https://api.elevenlabs.io`, or a regional host. */ readonly baseUrl?: string; }; /** ElevenLabs' speech-to-text: multipart, the key as `xi-api-key`; files up to 3 GB and 10 hours. */ export declare function elevenLabsTranscriber(options: ElevenLabsTranscriberOptions): Transcriber; /** What `openAiTranscriber` takes: the key function and the options every transcriber has, the model and the address. */ export type OpenAiTranscriberOptions = Common & { /** Default `whisper-1`: OpenAI gives word times only from it (`verbose_json` with word granularity). At OpenAI's own * address another model is an `unsupported` miss before any request; a compatible server at `baseUrl` is asked as * named, and an answer without word times is the same miss. */ readonly model?: string; /** Default `https://api.openai.com/v1`. */ readonly baseUrl?: string; }; /** OpenAI's transcriptions: multipart, a bearer key, `verbose_json` with word times; files up to 25 MB. */ export declare function openAiTranscriber(options: OpenAiTranscriberOptions): Transcriber; export {};