export declare class Qew { private maxConcurrent; private delay; private queue; private executing; /** * * @param maxConcurrent how many functions can be run simultaneously * @param delay how many ms to wait between when one function has resolved and * the next one is run */ constructor(maxConcurrent?: number, delay?: number | (() => number)); /** * Push another async function onto the queue * @param asyncFunc the async function to push onto this queue * @returns a Promise that resolves with `asyncFunc`'s resolved value – * whenever `asyncFunc` has been run and resolved. Or the Promise will reject * if `asyncFunc`'s Promise rejects */ push(asyncFunc: () => Promise): Promise; /** * @deprecated this is now only an alias for `Qew#push` */ pushProm: (asyncFunc: () => Promise) => Promise; private tryMove; } export default Qew;