import type { DebouncedFunction } from '../use-debounce-fn/index.js'; import type { ThrottleOptions } from '../use-throttle/index.js'; import { type HookErrorHandler } from '../utils/errors.js'; /** Controls a throttled function invocation. @public */ export type ThrottledFunction = DebouncedFunction; /** Options for {@link useThrottleFn}. @public */ export interface ThrottleFnOptions extends ThrottleOptions { /** Observes callback failures before they are rethrown. */ readonly onError?: HookErrorHandler; } /** Throttles calls to the latest function. @public */ export declare function useThrottleFn(fn: (...args: Args) => Result, options: ThrottleFnOptions): ThrottledFunction;