/**
 * Cancels timeouts on scope being destroyed.
 *
 * This could almost be a debounce, but debounce tracks by function reference, this tracks by hook reference.
 * This could have been implemented using debounce if the callers function was wrapped in useCallback,
 * but there's no way to enforce that, so  it would lead to bugs.
 */
export declare const useTimeoutHook: () => (fn: () => void, waitTimeMs: number) => void;
interface IntervalHookProps {
    timeoutMs: number;
    callback: () => void;
}
export declare const useIntervalHook: ({ callback, timeoutMs }: IntervalHookProps) => void;
export {};
