import type { FunctionComponent } from 'react'; export interface ErrorBoundaryProps { /** The title text to display on the error page */ headerTitle?: React.ReactNode; /** Indicates if the error is silent */ silent?: boolean; /** The title text to display with the error */ errorTitle?: React.ReactNode; /** The description text to display with the error */ errorDescription?: React.ReactNode; /** The default description text to display with the error if no errorDescription is provided */ defaultErrorDescription?: React.ReactNode; /** The text for the toggle link that users can select to view error details */ errorToggleText?: string; /** The component that the error boundary component is wrapped around, which should be returned if there is no error */ children?: React.ReactNode; /** Custom OUIA ID */ ouiaId?: string | number; /** The heading level to use on the header title, default is h1 */ headerTitleHeadingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; /** The heading level to use on the error title, default is h2 */ errorTitleHeadingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; } export interface ErrorBoundaryState { /** Indicates if there is currently an error */ hasError: boolean; /** Error */ error?: Error; /** Used for browser session history */ historyState: History['state']; } export declare const ErrorBoundary: FunctionComponent; export default ErrorBoundary;