type UseThrottleFnOptions = { /** * Schedule the last call. * * @default true */ trailing?: boolean; }; type UseThrottleFnReturn = { /** * Throttle a function execution. * * @param callback - The function to throttle. * @param interval - Override the default interval in milliseconds (optional). */ throttle: (callback: () => any, interval?: number) => void; /** * Cancel the throttle. */ cancel: () => void; /** * Whether a throttled call is pending. */ isPending: boolean; }; /** * https://one-hook.vercel.app/docs */ declare function useThrottleFn(defaultInterval: number, { trailing }?: UseThrottleFnOptions): UseThrottleFnReturn; export { type UseThrottleFnOptions, type UseThrottleFnReturn, useThrottleFn };