import type { Config } from '../../config/schema.js'; import type { RealtimeRuntime } from '../../realtime/runtime.js'; import type { SessionIndex } from '../../session/index.js'; import { type ProductLanguage } from '../../voice/language-profile.js'; import { VoiceRealtimeRuntime } from '../../voice/realtime/runtime.js'; import type { GatewayAgentRunner } from './agent-runner.js'; export interface GatewayVoiceRealtimeDeps { getSessionIndex: () => SessionIndex; getConfig: () => Config; getAgentRunner: () => GatewayAgentRunner; realtime: RealtimeRuntime; isPrincipalActive: (principalId: string) => boolean; emit: (type: string, payload: unknown) => void; } export declare function createGatewayVoiceRealtimeRuntime(deps: GatewayVoiceRealtimeDeps): VoiceRealtimeRuntime; export declare function syncGatewayVoiceLanguage(config: Config, saveConfig: (next: Config) => Promise<{ saved: boolean; error?: string; }>, language: ProductLanguage): Promise<{ applied: boolean; language: ProductLanguage; mode: 'auto' | 'manual'; error?: string; }>;