import { Component } from "../types.js"; import { ReactElement, ReactNode } from "react"; import { AsyncStore } from "@pastweb/tools"; //#region src/createEntry/WaitFor/types.d.ts type Wait = Promise | (() => Promise) | AsyncStore; type WaitForProps = { /** * Optional fallback component rendered while async tasks are pending. */ fallback?: ReactElement | Component; /** * Async task(s) to wait for before rendering children. */ wait: Wait | Wait[]; /** * Child elements to render once all async tasks are resolved. */ children: ReactNode; }; //#endregion export { Wait, WaitForProps }; //# sourceMappingURL=types.d.ts.map