@promptbook/core
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
39 lines (38 loc) • 1.48 kB
TypeScript
import type { DictationRefinementSettings } from './refineFinalDictationChunk';
import type { SpeechStatusBubbleTone } from './resolveSpeechRecognitionUiDescriptor';
/**
* Props for `<ChatInputAreaDictationPanel/>`.
*
* @private component of `<ChatInputArea/>`
*/
export type ChatInputAreaDictationPanelProps = {
bubbleText?: string;
bubbleTone?: SpeechStatusBubbleTone;
shouldShowPanel: boolean;
isExpanded: boolean;
interimText: string;
error: {
code?: string;
message: string;
} | null;
lastFinalChunk: string;
editableChunk: string;
canBacktrack: boolean;
dictationSettings: DictationRefinementSettings;
isBrowserSpeechFallbackSupported: boolean;
canOpenBrowserSettings: boolean;
onToggleExpanded: () => void;
onExpand: () => void;
onEditableChunkChange: (nextValue: string) => void;
onRetryPermissionRequest: () => void;
onOpenBrowserSettings: () => void;
onApplyCorrection: () => void;
onBacktrackLastChunk: () => void;
onDictationSettingChange: (settingName: 'autoPunctuation' | 'autoCapitalization' | 'removeFillerWords' | 'formatLists' | 'whisperMode', checked: boolean) => void;
};
/**
* Renders speech-status details, transcript correction controls, and dictation settings.
*
* @private component of `<ChatInputArea/>`
*/
export declare function ChatInputAreaDictationPanel(props: ChatInputAreaDictationPanelProps): import("react/jsx-runtime").JSX.Element;