import { J as JsonObject, R as RealtimeFunctionToolDefinition, h as VoiceProvider, i as VoiceEvent, c as VoiceSessionConfig } from '../types-Dc4Q3Z6X.js'; interface OpenAIRealtimeProviderOptions { readonly baseUrl?: string; readonly providerName?: string; } interface OpenAIRealtimeSessionConfig { readonly type: "realtime"; readonly model: string; readonly instructions?: string; readonly audio?: JsonObject; readonly tools?: readonly RealtimeFunctionToolDefinition[]; readonly metadata?: Readonly>; } interface OpenAIClientSecretRequest { readonly session: OpenAIRealtimeSessionConfig; } interface OpenAIRealtimeCallRequest { readonly sdp: string; readonly session: OpenAIRealtimeSessionConfig; } interface OpenAIRealtimeHttpClient { createClientSecret(request: OpenAIClientSecretRequest, options: { readonly signal?: AbortSignal; }): Promise; createCall(request: OpenAIRealtimeCallRequest, options: { readonly signal?: AbortSignal; }): Promise; } declare function createOpenAIRealtimeProvider(options?: OpenAIRealtimeProviderOptions): VoiceProvider; declare function toOpenAISessionConfig(config: VoiceSessionConfig): OpenAIRealtimeSessionConfig; declare function normalizeOpenAIRealtimeEvent(event: unknown): VoiceEvent | null; export { type OpenAIClientSecretRequest, type OpenAIRealtimeCallRequest, type OpenAIRealtimeHttpClient, type OpenAIRealtimeProviderOptions, type OpenAIRealtimeSessionConfig, createOpenAIRealtimeProvider, normalizeOpenAIRealtimeEvent, toOpenAISessionConfig };