import * as React from 'react';
import { ToastOnTargetOpts } from '@/components/toast';
export interface ErrorBoundaryNotifyProps {
    args: ((errorMsg: string) => ToastOnTargetOpts) | ToastOnTargetOpts;
}
interface ErrorBoundaryNotifyPropsState {
    hasError: boolean;
    errorMsg: string;
}
declare class ErrorBoundaryNotify extends React.Component<ErrorBoundaryNotifyProps, ErrorBoundaryNotifyPropsState> {
    static configToast(getContainer?: () => HTMLElement, prefix?: string): void;
    constructor(props: ErrorBoundaryNotifyProps);
    reload: () => void;
    static getDerivedStateFromError(error: Error): {
        hasError: boolean;
        errorMsg: string;
    };
    componentDidCatch(_error: Error, errorInfo: React.ErrorInfo): void;
    render(): React.ReactNode;
}
export default ErrorBoundaryNotify;
