import { default as React } from 'react';
/**
 * A custom hook for handling timeout events.
 *
 * @param callback The callback function to execute after the timeout.
 * @param delay The duration of the timeout in milliseconds. Pass `null` to cancel the timeout.
 *
 * @returns A mutable ref object to manage the timeout ID.
 */
declare const useTimeout: (callback: () => void, delay: number | null) => React.MutableRefObject<number | null>;
export declare const useChainedTimeout: () => {
    set: (fn: () => void, delayMs?: number) => void;
    clear: () => void;
    handleRef: React.MutableRefObject<any>;
};
export default useTimeout;
