/** * Produces a promise aware debounced function that delays invoking `func` until * after `wait` milliseconds have elapsed since the last time the debounced * function was invoked. * * @param {Function} func * @param {number} wait * @param {Object} options * @param {boolean} options.leading * @param {number} options.maxWait * @param {*} options.context * * @returns {Function} */ export default function pDebounce(func: Function, wait?: number, { leading, maxWait, context, }?: { leading: boolean; maxWait: number; context: any; }): Function;