import React from 'react';
export type VoiceRecognizer = {
    start: () => Promise<void>;
    stop: () => Promise<void>;
};
export type CreateRecognizer = (handlers: {
    onSentenceBegin: () => void;
    onPartial: (text: string) => void;
    onSentenceEnd: (text: string) => void;
    onError?: (error: unknown) => void;
}) => Promise<VoiceRecognizer>;
type VoiceInputButtonProps = {
    recording: boolean;
    disabled?: boolean;
    onStart: () => Promise<void>;
    onStop: () => Promise<void>;
    style?: React.CSSProperties;
    title?: React.ReactNode;
};
/**
 * 语音输入按钮。
 * - recording=false：未开始
 * - recording=true：录音中
 * 外部通过 `createRecognizer` 提供语音识别实现。
 */
export declare const VoiceInputButton: React.FC<VoiceInputButtonProps>;
export default VoiceInputButton;
