/** A word as the fake answers it, in seconds. */ export type FakeWord = { readonly text: string; readonly start: number; readonly end: number; }; /** One request the fake provider received: its address, method, headers and fields. */ export type FakeTranscriptionRequest = { readonly url: string; readonly method: string; readonly headers: Readonly>; /** JSON fields, or each multipart field as its text, a file as `{ name, type, size }`. */ readonly fields: Readonly>; }; /** `fetch` for one provider: it answers with `words` (and `durationS`, which only OpenAI states), or refuses every * request with `refuse`. */ export declare function fakeTranscriptionFetch(provider: "fal" | "elevenlabs" | "openai", answer: { readonly words: readonly FakeWord[]; readonly durationS?: number; readonly refuse?: { readonly status: number; readonly body: string; }; }): { readonly fetch: typeof globalThis.fetch; readonly requests: FakeTranscriptionRequest[]; };