import { SpeechRecognizer } from '../utils/stt'; import { MutableRefObject, ReactNode } from 'preact/compat'; import { Dispatch, StateUpdater } from 'preact/hooks'; export interface AudioContextType { conversationStarted: boolean; permissionAsked: boolean; permissionGranted: boolean | null; micMuted: boolean; inputDevices: MediaDeviceInfo[]; outputDevices: MediaDeviceInfo[]; selectedInputDevice: string; selectedOutputDevice: string; micStreamRef: MutableRefObject; speakerMuted: boolean; handleMute: (muted?: boolean) => void; setSpeakerMuted: Dispatch>; startConversation: () => void; setSelectedInputDevice: (deviceId: string) => void; requestMicrophoneAccess: () => void; setSelectedOutputDevice: (deviceId: string) => void; sttRecognizer: SpeechRecognizer | null; } interface AudioContextProviderProps { children: ReactNode; } export declare function AudioContextProvider({ children }: AudioContextProviderProps): import("preact").JSX.Element; export declare const useAudioContext: () => AudioContextType; export {};