UNPKG

@promptbook/wizard

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

37 lines (36 loc) 1.25 kB
/** * Voice settings available for lightweight transcript refinement. * * @private function of `useChatInputAreaDictation` */ export type DictationRefinementSettings = { readonly autoPunctuation: boolean; readonly autoCapitalization: boolean; readonly removeFillerWords: boolean; readonly formatLists: boolean; readonly whisperMode: boolean; }; /** * Dictionary map of corrected lower-case token to preferred token. * * @private function of `useChatInputAreaDictation` */ export type DictationDictionary = Readonly<Record<string, string>>; /** * Fallback refinement settings when user has no saved preferences. * * @private function of `useChatInputAreaDictation` */ export declare const DEFAULT_DICTATION_SETTINGS: DictationRefinementSettings; /** * Normalizes free-form transcript whitespace. * * @private function of `useChatInputAreaDictation` */ export declare function normalizeDictationWhitespace(text: string): string; /** * Applies refinement settings and dictionary corrections to one final chunk. * * @private function of `useChatInputAreaDictation` */ export declare function refineFinalDictationChunk(rawChunk: string, settings: DictationRefinementSettings, dictionary: DictationDictionary): string;