import { Component, type ErrorInfo, type ReactNode } from "react"; import type { DesignSystemComponentName } from "./types.js"; interface DesignSystemErrorBoundaryProps { component: DesignSystemComponentName | string; fallback: ReactNode; children: ReactNode; } interface DesignSystemErrorBoundaryState { failed: boolean; } export declare class DesignSystemErrorBoundary extends Component { state: DesignSystemErrorBoundaryState; static getDerivedStateFromError(): DesignSystemErrorBoundaryState; componentDidCatch(error: unknown, info: ErrorInfo): void; render(): ReactNode; } export {}; //# sourceMappingURL=error-boundary.d.ts.map