import { default as React } from 'react';
interface ErrorBoundaryProps<T> {
    fallback: React.ReactNode;
    children: React.ReactNode;
    reset: T;
}
interface ErrorBoundaryState {
    error: boolean;
}
declare class ErrorBoundary<T> extends React.Component<ErrorBoundaryProps<T>, ErrorBoundaryState> {
    constructor(props: ErrorBoundaryProps<T>);
    componentDidCatch(): void;
    componentDidUpdate(prevProps: Readonly<ErrorBoundaryProps<T>>): void;
    render(): React.ReactNode;
}
export default ErrorBoundary;
