import type { AnyFunction } from '../mod.ts'; export interface ThrottleOptions { leading?: boolean; trailing?: boolean; } /** * Creates a throttled function that only invokes func at most once per every wait milliseconds. * @param fn Function. * @param timeout Timeout in milliseconds. * @param options Options. * @returns Throttled function. */ export declare function throttle(fn: T, timeout?: number, { leading, trailing }?: ThrottleOptions): (...args: Parameters) => void;