import React from 'react'; import { type ErrorBoundaryProps } from './error-boundary.js'; export type WithErrorBoundaryOptions = { /** Optional custom fallback renderer. */ fallback?: ErrorBoundaryProps['fallback']; /** * Optional custom test id for the default fallback. * If you provide a custom `fallback`, this is ignored. */ testId?: string; }; /** * Wrap any component with an ErrorBoundary. * * Useful when you render a remote component outside of `RemoteOutlet`. */ export declare function withErrorBoundary

(Component: React.ComponentType

, options?: WithErrorBoundaryOptions): React.ComponentType

; /** * Wrap a lazy import with an ErrorBoundary. * * ```ts * const Remote = wrapLazyWithErrorBoundary(() => import('dashboard/App')) * ``` */ export declare function wrapLazyWithErrorBoundary

(loader: () => Promise<{ default: React.ComponentType

; }>, options?: WithErrorBoundaryOptions): React.LazyExoticComponent>; //# sourceMappingURL=error-boundary-utils.d.ts.map