export interface DebouncedAsyncFunction { (...arguments_: A): Promise; cancel: () => void; } /** * Creates a debounced async function. Subsequent calls within `wait` ms reset * the timer and share a single resolution; the latest arguments win. * * @template A - Argument tuple type * @template R - Resolved value type * @param {(...args: A) => Promise} function_ - Async function to debounce * @param {number} wait - Debounce window in milliseconds * @returns {DebouncedAsyncFunction} Debounced wrapper with cancel support * @example * const search = debounceAsync(query, 300); * await search("foo"); */ export declare const debounceAsync: (function_: (...arguments_: A) => Promise, wait: number) => DebouncedAsyncFunction;