import type { GatewayProviderMetadata } from "@cline/shared"; import { type ProviderConfig } from "./providers/config"; export declare const DEFAULT_TRANSCRIPTION_TIMEOUT_MS = 120000; export interface AudioTranscriptionRequest { providerConfig: ProviderConfig; modelId: string; audio: Uint8Array; mediaType?: string; abortSignal?: AbortSignal; maxRetries?: number; } export interface AudioTranscriptionResult { text: string; language?: string; durationInSeconds?: number; } export interface StreamingAudioTranscriptionSessionRequest { providerConfig: ProviderConfig; modelId: string; expiresAfterSeconds?: number; abortSignal?: AbortSignal; } export interface StreamingAudioTranscriptionSession { token: string; url: string; expiresAt?: number; } export interface AudioTranscriptionRoute { transport: NonNullable; baseUrl: string; endpoint: string; } /** * Resolve the provider-specific transport used for audio transcription. * * Vercel AI Gateway's AI SDK protocol is not the OpenAI-compatible REST * surface: transcription requests go to `/v4/ai/transcription-model`. */ export declare function resolveAudioTranscriptionRoute(config: Pick): AudioTranscriptionRoute; /** * Mint a short-lived credential for a browser transcription WebSocket. * * The long-lived provider credential remains on the trusted SDK/sidecar side; * only the transcription-bound client secret is returned to the webview. */ export declare function createStreamingAudioTranscriptionSession(request: StreamingAudioTranscriptionSessionRequest): Promise; /** * Transcribe recorded audio through the selected provider's transcription * endpoint. Provider credentials and endpoints come from the same * ProviderConfig used by the rest of the SDK. */ export declare function transcribeAudio(request: AudioTranscriptionRequest): Promise; //# sourceMappingURL=transcription.d.ts.map