import { Component, type ErrorInfo, type ReactNode } from 'react'; /** * Placeholder shown while a code-split page's chunk arrives. It matches the * standard page width so the modal does not snap to zero and back while loading. */ export declare const PageLoading: () => import("react/jsx-runtime").JSX.Element; type PageErrorBoundaryState = { hasError: boolean; }; /** * Keeps a page failure inside the modal. * * `React.lazy` rejects when a chunk cannot be fetched — the usual cause being a * deploy that replaced the content-hashed file the open page still refers to. * `Suspense` does not catch that, so without a boundary here the rejection * unwinds past `OpenfortProvider` into the host application. */ export declare class PageErrorBoundary extends Component<{ children: ReactNode; }, PageErrorBoundaryState> { state: PageErrorBoundaryState; static getDerivedStateFromError(): PageErrorBoundaryState; componentDidCatch(error: Error, info: ErrorInfo): void; render(): string | number | boolean | Iterable | import("react/jsx-runtime").JSX.Element | null | undefined; } /** Wraps a code-split page in the shared modal-sized loading fallback. */ export declare const withPageLoading: (page: ReactNode) => import("react/jsx-runtime").JSX.Element; export {};