import { type Chat } from "@hashbrownai/core"; import { type ReactNode } from "react"; import { type GenUiRegistration } from "./use-gen-ui"; import { type VoiceAgentRenderState } from "./use-voice-agent"; /** * Represents props for the `VoiceAgent` orchestration component. */ export type VoiceAgentProps = { autoStartVoiceInput?: boolean; children: (agent: VoiceAgentRenderState) => ReactNode; genUi?: readonly GenUiRegistration[]; runtimeUrl?: string; session: { model: string; type: "realtime"; } & Record; sessionEndpoint?: string; toolTimeoutMs?: number; tools?: readonly Chat.AnyTool[]; }; /** * Owns realtime WebRTC lifecycle, tool invocation loop, and render-prop state for voice sessions. * * @param props Voice agent configuration. * @returns Provider-wrapped render-prop output. */ export declare const VoiceAgent: (props: VoiceAgentProps) => ReactNode; //# sourceMappingURL=voice-agent.d.ts.map