import { Component, type FC, type PropsWithChildren, type ReactNode } from 'react';
type State = {
    error: Error | undefined;
};
export type ErrorBoundaryProps = PropsWithChildren<{
    data?: any;
    fallback?: FC<{
        data?: any;
        error: Error;
    }>;
}>;
/**
 * Surface error boundary.
 * For basic usage prefer providing a fallback component to `Surface`.
 *
 * Ref: https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary
 */
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, State> {
    static getDerivedStateFromError(error: Error): {
        error: Error;
    };
    state: {
        error: undefined;
    };
    componentDidUpdate(prevProps: ErrorBoundaryProps): void;
    render(): ReactNode;
    private resetError;
}
export {};
//# sourceMappingURL=ErrorBoundary.d.ts.map