import React, { Component, type FC, type PropsWithChildren } from 'react';
type Props = PropsWithChildren<{
    data?: any;
    fallback: FC<{
        data?: any;
        error: Error;
        reset: () => void;
    }>;
}>;
type State = {
    error: Error | undefined;
};
/**
 * Surface error boundary.
 *
 * For basic usage prefer providing a fallback component to `Surface`.
 *
 * For more information on error boundaries, see:
 * https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary
 */
export declare class ErrorBoundary extends Component<Props, State> {
    constructor(props: Props);
    static getDerivedStateFromError(error: Error): {
        error: Error;
    };
    componentDidUpdate(prevProps: Props): void;
    render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
    private resetError;
}
export {};
//# sourceMappingURL=ErrorBoundary.d.ts.map