import { RefAttributes, ForwardRefExoticComponent, PropsWithoutRef, ComponentType, ComponentRef, ComponentProps } from "react"; import { ErrorBoundaryProps } from "./types.js"; export declare function withErrorBoundary>(component: T, errorBoundaryProps: ErrorBoundaryProps): ForwardRefExoticComponent> & RefAttributes>>;