import { type Settings } from "@opengeni/config"; import type { GatewayRealtimeInitialItem } from "@opengeni/contracts"; import { type Database } from "@opengeni/db"; export declare class XaiRealtimeBrokerError extends Error { readonly code: "model_unavailable" | "credential_unavailable" | "provider_error" | "invalid_provider_response"; readonly providerStatus: number | null; constructor(code: "model_unavailable" | "credential_unavailable" | "provider_error" | "invalid_provider_response", message: string, providerStatus?: number | null); } export type XaiRealtimeConnectionSecret = { token: string; url: string; upstreamModelId: string; expiresAt: number | null; initialItems: GatewayRealtimeInitialItem[]; instructions: string; }; export declare function createXaiRealtimeConnectionSecret(input: { db: Database; settings: Settings; accountId: string; workspaceId: string; subjectId: string; sessionId: string; model: string; fetchImpl?: typeof fetch; }): Promise;