import { type HookErrorHandler } from '../utils/errors.js'; /** Options for {@link useTimeout}. @public */ export interface UseTimeoutOptions { /** Observes callback failures before they are rethrown. */ readonly onError?: HookErrorHandler; } /** * Runs the latest callback once after `delay` milliseconds. * Pass `null` to disable the timeout; `cancel` remains effective until `delay` changes. * @public */ export declare function useTimeout(callback: () => void, delay: number | null, options?: UseTimeoutOptions): { readonly cancel: () => void; readonly pending: boolean; };