/// <reference types="react" />
import type { MarkdownEditorInstance } from '../../MarkdownEditor';
import type { CreateRecognizer } from '../VoiceInput';
export interface VoiceInputManagerProps {
    /** 语音识别器创建函数 */
    voiceRecognizer?: CreateRecognizer;
    /** Markdown 编辑器实例 */
    editorRef?: React.MutableRefObject<MarkdownEditorInstance | undefined>;
    /** 值变化回调 */
    onValueChange?: (value: string) => void;
}
export interface VoiceInputManagerReturn {
    /** 是否正在录音 */
    recording: boolean;
    /** 开始录音 */
    startRecording: () => Promise<void>;
    /** 停止录音 */
    stopRecording: () => Promise<void>;
}
/**
 * 语音输入管理器
 *
 * @description 封装语音输入相关的逻辑，包括录音控制、语音识别等
 */
export declare const useVoiceInputManager: ({ voiceRecognizer, editorRef, onValueChange, }: VoiceInputManagerProps) => VoiceInputManagerReturn;
