import * as React from "react";
type Props = {
    children: React.ReactNode;
    metadata?: Record<string, string>;
    onError?: (error: Error, info: any) => void;
};
type State = {
    error: string;
};
declare class ErrorBoundary extends React.Component<Props, State> {
    constructor(props: Props);
    componentDidCatch(error: Error, info: any): void;
    render(): React.ReactNode;
}
export default ErrorBoundary;
