@promptbook/wizard
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
30 lines (29 loc) • 1.2 kB
TypeScript
import type { ChatProps } from './ChatProps';
import type { DictationUiState, SpeechRecognitionUiDescriptor } from './resolveSpeechRecognitionUiDescriptor';
/**
* Props for `useChatInputAreaDictationSupport`.
*
* @private function of `useChatInputAreaDictation`
*/
type UseChatInputAreaDictationSupportProps = {
readonly dictationUiState: DictationUiState;
readonly speechRecognitionLanguage?: ChatProps['speechRecognitionLanguage'];
};
/**
* Browser-derived metadata used by the dictation UI.
*
* @private function of `useChatInputAreaDictationSupport`
*/
type UseChatInputAreaDictationSupportResult = {
readonly speechRecognitionUiDescriptor: SpeechRecognitionUiDescriptor;
readonly resolvedSpeechRecognitionLanguage: string;
readonly isBrowserSpeechFallbackSupported: boolean;
readonly microphoneSettingsUrl?: string;
};
/**
* Resolves browser and language metadata derived from the current dictation UI state.
*
* @private function of `useChatInputAreaDictation`
*/
export declare function useChatInputAreaDictationSupport({ dictationUiState, speechRecognitionLanguage, }: UseChatInputAreaDictationSupportProps): UseChatInputAreaDictationSupportResult;
export {};