/** * @import { Debounced } from './debounce.types' */ /** * Creates a debounced function. * * @param { Function } fn - Function to debounce. * @param { number } minWait - Time in milliseconds to wait before executing `fn` since the debounced function's last call. * @param { object } [options = {}] * @param { boolean } [options.eager = false] - When set to `true`, `fn` is executed as soon as the debounced function is called *if* `fn` is not scheduled and `minWait` milliseconds have elapsed since `fn`'s last execution (or `fn` has not been executed). Defaults to `false`. * * @returns { Debounced } Debounced function with `cancel` method to cancel scheduled `fn` execution. */ export function debounce(fn: Function, minWait: number, options?: { eager?: boolean | undefined; }): Debounced; import type { Debounced } from './debounce.types'; //# sourceMappingURL=debounce.d.ts.map