/** * 音频处理工具 */ export declare const RECORDING_STYLE: { position: string; inset: number; width: string; height: string; zIndex: number; background: string; borderRadius: string; }; /** * 触发设备震动 * @param duration 震动时长(毫秒),默认 100ms */ export declare const vibrate: (duration?: number) => void; /** 最大录音时长(毫秒) */ export declare const MAX_RECORDING_TIME = 60000; /** 倒计时提示时间(毫秒) */ export declare const COUNTDOWN_ALERT_TIME = 10000; /** 权限错误提示消息 */ export declare const PERMISSION_ERROR_MESSAGE = "\u65E0\u6CD5\u8BBF\u95EE\u9EA6\u514B\u98CE\uFF0C\u8BF7\u68C0\u67E5\u9EA6\u514B\u98CE\u6743\u9650"; /** * 检查麦克风权限状态 */ export declare const checkMicrophonePermission: () => Promise<{ isDenied: boolean; isPrompt: boolean; }>; /** * 支持的音频格式类型(浏览器 MediaRecorder 支持的格式) */ export type AudioFormat = 'webm' | 'mp4' | 'ogg'; /** * 获取浏览器支持的 MIME 类型 */ export declare const getSupportedMimeType: (preferredFormat?: AudioFormat) => string;