export type ThrottledQueue = { add: (item: T) => void; flush: () => Promise; isEmpty: () => boolean; }; export declare function createThrottledQueue(onFlush: (items: T[]) => Promise, throttleInMs?: number): ThrottledQueue;