/** * This function aggregate events and call the callback with aggregated events every {delay} * * @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 aggregate(delay: number, map: (input: INPUT) => OUTPUT, callback: (aggregated: OUTPUT[]) => void): (arg: INPUT) => void;