UNPKG

react-voice-recorder-pro

Version:

A powerful React hook-based voice recording library with real-time audio visualization and comprehensive browser support

16 lines 572 B
/** * Custom hook for tracking recording progress time * * Key features: * - Automatically starts/stops timer based on recording start/stop * - Supports pause/resume functionality for accurate recording time tracking * - Formats time in HH:MM:SS format for user display * - Safely cleans up timer on component unmount */ export declare function useRecordingTimer(isRecording: boolean, // Whether currently recording isPaused?: boolean): { elapsedTime: number; formattedTime: string; reset: () => void; }; //# sourceMappingURL=useRecordingTimer.d.ts.map