export type ParameterlessPromiseQueueFunc = () => Promise; /** * * The Result Type of promiseQueue-Function * @since 1.1.0 */ export type PromiseQueue = { promiseFunc: ParameterlessPromiseQueueFunc; callback?(result: T, index: number): void | Promise; onError?(error: any, index: number): void | Promise; }; export declare function toParameterlessPromiseQueueFunc(promiseFunc: any, ...funcParams: any): ParameterlessPromiseQueueFunc; /** * * Executes a list of Promise one after one (in a queu). An Error/reject will not stop the next promise call. * @param {(Array>|Array>)} promiseArray The array of Promises that will be executed. Use Array> to handle callback or errors * @param {number} [delayBetweenCalls=500] A delay time (in ms) determines a period of time between each execution * @return {*} {Promise} * @since 1.1.0 */ export default function promiseQueue(promiseArray: Array> | Array>, delayBetweenCalls?: number): Promise; //# sourceMappingURL=promiseQueue.d.ts.map