import { Component } from "../createEntry/types.cjs"; import { ReactElement } from "react"; //#region src/AsyncComponent/types.d.ts interface DependencyInfo { exportName?: string; dependency: Promise | (() => Promise); onSuccess?: (dependency: any) => void; onError?: (error: any) => void; } type ComponentModule = { default: Component; }; type Dependency = Promise | (() => Promise) | DependencyInfo; interface AsyncComponentProps { component: () => Promise; dependencies?: (Dependency | DependencyInfo)[]; fallback?: ReactElement | null; } //#endregion export { AsyncComponentProps, ComponentModule, Dependency, DependencyInfo }; //# sourceMappingURL=types.d.cts.map