import type { PropsWithChildren } from 'react'; import { Component } from 'react'; import type { ICore } from '../typings/core'; interface IErrorBoundaryState { hasError: boolean; error: Error; } interface IErrorBoundaryProps { catchErrorTips?: ICore['catchErrorTips']; } export default class ErrorBoundary extends Component, IErrorBoundaryState> { static getDerivedStateFromError(error: Error): { hasError: boolean; error: Error; }; state: { hasError: boolean; error: Error; }; getFallback(): string | number | boolean | Iterable | import("react/jsx-runtime").JSX.Element | null | undefined; render(): string | number | boolean | Iterable | import("react/jsx-runtime").JSX.Element | null | undefined; } export {};