import type { ReactNode } from "react"; import type { RoomCoordinator, VoiceConfig } from "../types.js"; export interface VoiceConfigCallbacks { /** * The camera in use is not the one that was configured. Fires when a default was picked, * and when the device that opened is not the one asked for — an unplugged camera. */ onCameraDeviceChanged?(deviceId: string): void; onAudioDeviceChanged?(deviceId: string): void; } export interface VoiceTarget { id: string; room: RoomCoordinator; } interface VoiceConfigValue { config: VoiceConfig; callbacks: VoiceConfigCallbacks; target: VoiceTarget | null; } export interface VoiceConfigProviderProps { config: VoiceConfig; callbacks?: VoiceConfigCallbacks; target?: VoiceTarget | null; children?: ReactNode; } export declare function VoiceConfigProvider({ config, callbacks, target, children, }: VoiceConfigProviderProps): import("react").FunctionComponentElement>; export declare function useVoiceConfig(): VoiceConfig; export declare function useVoiceCallbacks(): VoiceConfigCallbacks; export declare function useVoiceTarget(): VoiceTarget | null; export {};