import React, { Component, type ReactNode, type ErrorInfo } from 'react'; interface Props { children: ReactNode; fallback?: ReactNode | ((error: Error, reset: () => void) => ReactNode); onError?: (error: Error, info: ErrorInfo) => void; } interface State { error: Error | null; } export declare class ErrlyErrorBoundary extends Component { state: State; static getDerivedStateFromError(error: Error): State; componentDidCatch(error: Error, info: ErrorInfo): void; reset: () => void; render(): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | React.JSX.Element | null | undefined; } export declare function withErrly(WrappedComponent: React.ComponentType, fallback?: Props['fallback']): (props: T) => React.JSX.Element; export {};