import React from 'react'; import { ErrorBoundary } from 'react-error-boundary'; export interface ErrorBoundaryProps { onResetKeysChange?: (prevResetKeys: Array, resetKeys: Array) => void; onReset?: () => void; onError?: (error: Error, info: { componentStack: string; }) => void; resetKeys?: Array; fallback?: React.ReactElement | null; [key: string]: any; } export declare function ErrorFallback(args: any): React.JSX.Element; export declare const setDefaultErrorFallback: (CustComponents: any) => void; export default ErrorBoundary;