import { Wait } from "./types.js"; //#region src/createReduxAsyncStore/temp/createAsyncStore/normalizeAsyncQueue.d.ts /** * Normalizes an array of asynchronous operations into an array of promises. * * @param {Wait | Wait[]} wait - A single or an array of asynchronous operations. * Each operation can be a promise, a function returning a promise, * or an object representing an asynchronous store. * @returns {Promise[]} An array of promises. * * @throws {Error} Throws an error if an invalid type is encountered in the wait array. * * @example * // Single promise * const singlePromise = Promise.resolve('done'); * normalizeAsyncQueue(singlePromise); // [singlePromise] * * @example * // Array of promises and functions * const promise1 = Promise.resolve('done'); * const promise2 = () => Promise.resolve('done'); * normalizeAsyncQueue([promise1, promise2]); // [promise1, promise2()] * * @example * // Async store * const asyncStore = createAsyncStore({ storeName: 'myStore' });; * normalizeAsyncQueue(asyncStore); // [asyncStore.isReady] */ declare function normalizeAsyncQueue(wait: Wait | Wait[]): Promise[]; //#endregion export { normalizeAsyncQueue }; //# sourceMappingURL=normalizeAsyncQueue.d.ts.map