import { type HookErrorHandler } from '../utils/errors.js'; /** Options for {@link useInterval}. @public */ export interface UseIntervalOptions { /** Observes callback failures before they are rethrown. */ readonly onError?: HookErrorHandler; } /** * Repeatedly runs the latest callback at `delay` millisecond intervals. * Pass `null` to stop the interval. * @public */ export declare function useInterval(callback: () => void, delay: number | null, options?: UseIntervalOptions): void;