/** * Lazily loads a module with retry support. * * @example * ```ts * fetchLazyModule(() => import('./test.ts'), 3) // starts loading test.ts * // If loading test.ts fails, fetchLazyModule retries by calling fetchModule() again * // It retries as many times as specified by attempts (3 by default) * ``` */ declare const fetchLazyModule: (fetchModule: () => Promise, attempts?: number, delay?: number) => Promise; type PackedAsyncModule = Promise; /** * Resolves either a direct value or an asynchronously imported module and unwraps its `default` export. * * @example * ```ts * const component = await unpackAsyncModule(import('./Component.ts')); * ``` */ declare const unpackAsyncModule: (maybeModule: T | PackedAsyncModule) => Promise; export { fetchLazyModule, unpackAsyncModule }; export type { PackedAsyncModule };