import * as React from 'react'; import { Message } from '@vn-sdk/shared'; declare const checkMicrophonePermission: () => Promise; declare const requestMicAndPlaybackPermission: () => Promise<{ stream: MediaStream; audioContext: AudioContext; } | null>; type PushToTalkState = "idle" | "recording" | "transcribing"; type SendFunction = (text: string) => Promise; declare const usePushToTalk: ({ sendFunction, inProgress, }: { sendFunction: SendFunction; inProgress: boolean; }) => { pushToTalkState: PushToTalkState; setPushToTalkState: React.Dispatch>; }; export { PushToTalkState, SendFunction, checkMicrophonePermission, requestMicAndPlaybackPermission, usePushToTalk };