/** Embeddable HTTP handler/server for browser Realtime applications. */ import { type IncomingMessage, type ServerResponse } from "node:http"; import { type RealtimeModel, type RealtimeTranscriptionModel } from "./config.js"; import { GptLiveCallService } from "./gpt-live.js"; import { type GptLiveDelegationRunner } from "./gpt-live-delegation.js"; import { RealtimeSessionService } from "./session.js"; import type { ToolRegistry } from "./tools.js"; import { TranscriptionSessionService } from "./transcription.js"; export interface RealtimeHttpOptions { sessions?: RealtimeSessionService; transcriptionSessions?: TranscriptionSessionService; /** Experimental Codex GPT-Live SDP bridge. Set false to disable it. */ gptLiveCalls?: GptLiveCallService | false; /** Natural-language GPT-Live delegation runner. Set false to disable it. */ gptLiveDelegations?: GptLiveDelegationRunner | false; tools?: ToolRegistry; publicDir?: string | false; models?: readonly RealtimeModel[]; defaultModel?: RealtimeModel; transcriptionModels?: readonly RealtimeTranscriptionModel[]; defaultTranscriptionModel?: RealtimeTranscriptionModel; bodyLimitBytes?: number; onToolCall?: (name: string, args: unknown) => void; } export declare function createRealtimeHandler(options?: RealtimeHttpOptions): (req: IncomingMessage, res: ServerResponse) => Promise; export declare function createRealtimeServer(options?: RealtimeHttpOptions): import("http").Server; //# sourceMappingURL=server.d.ts.map