UNPKG

@mirawision/reactive-hooks

Version:

A comprehensive collection of 50+ React hooks for state management, UI interactions, device APIs, async operations, drag & drop, audio/speech, and more. Full TypeScript support with SSR safety.

14 lines (13 loc) 484 B
interface TimeoutControls { reset: () => void; clear: () => void; } /** * A hook that executes a callback after a specified delay. * Returns controls to reset or clear the timeout. * @param callback The function to execute after the delay * @param delay The delay in milliseconds, or null to pause the timeout * @returns Object with reset and clear functions */ export declare function useTimeout(callback: () => void, delay: number | null): TimeoutControls; export {};