/** * Trailing-edge debounce: collapses calls that arrive within `waitMs` of each * other into a single invocation, scheduled `waitMs` after the most recent * call. The last call's arguments win. * * The returned function carries two extra methods: * - cancel(): drop any pending invocation (use on shutdown so a timer * doesn't keep the process alive). * - flush(): run any pending invocation immediately (useful in tests). */ export declare function debounce(fn: (...args: A) => void, waitMs: number): ((...args: A) => void) & { flush: () => void; cancel: () => void; }; //# sourceMappingURL=debounce.d.ts.map