/** * This function aggregate events and call the callback with aggregated events every {delay} * But this function apply a debounce, thats means that the timer is reseted every time the function is called * * @param delay delay between each call * @param map a function to transform event from {INPUT} to {OUTPUT} * @param callback a callback called with aggregated events every x ms * @returns a function that take as argument (INPUT)=>void */ export declare function debounceAggregate(delay: number, map: (input: INPUT) => OUTPUT, callback: (aggregated: OUTPUT[]) => void): (arg: INPUT) => void;