export interface ThrottledAsyncFunction { (...arguments_: A): Promise; cancel: () => void; } /** * Creates a throttled async function. Coalesces concurrent calls within the * `wait` window so only one underlying invocation runs; all callers in the * window receive the same result. * * @template A - Argument tuple type * @template R - Resolved value type * @param {(...args: A) => Promise} function_ - Async function to throttle * @param {number} wait - Window length in milliseconds * @returns {ThrottledAsyncFunction} Throttled wrapper with cancel support * @example * const fetchUser = throttleAsync(loadUser, 1000); */ export declare const throttleAsync: (function_: (...arguments_: A) => Promise, wait: number) => ThrottledAsyncFunction;