import { Component, ErrorInfo, ReactNode } from 'react'; export type BoundaryProps = { children?: ReactNode | ((data: Data | null, reload: (...params: Params[]) => void) => ReactNode); onError?(error: Error, errorInfo: ErrorInfo): void; renderError?: ReactNode | ((errorProps: { error: any; reload?(...params: Params[]): void; }) => ReactNode); renderLoading?: ReactNode | ((...args: Args[]) => ReactNode); loadData?(passLoadingArgs: (...args: Args[]) => void, ...params: Params[]): Data | Promise; }; type BoundaryContext = { data?: Data | null; reload?(...params: Params[]): void; }; declare const BoundaryContext: import("react").Context>; export declare function useBoundaryContext(): BoundaryContext; type BoundaryState = { error: any | null; loading: boolean; loadingComponent: ReactNode; progress: number; data: Data | null; }; export declare class Boundary extends Component, BoundaryState> { static ErrorBoundary: import("react").MemoExoticComponent<({ error, reload, reloadable, ...props }: import("./errorBoundary").ErrorBoundaryProps) => import("@emotion/react/jsx-runtime").JSX.Element>; static defaultProps: BoundaryProps; static getDerivedStateFromError(error: any): { error: any; }; state: BoundaryState; private passLoadingArgs; private reload; componentDidMount(): Promise; private isUnmounted; componentWillUnmount(): void; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; private renderError; private renderChildren; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | import("@emotion/react/jsx-runtime").JSX.Element | null | undefined; } export {};