import React from 'react'; import type { ApiCallInfo, IHasCX, IHasChildren, ErrorPageInfo } from '@epam/uui-core'; import { UuiError } from '@epam/uui-core'; export interface ErrorHandlerProps extends IHasCX, IHasChildren { /** Pure function to get error info for display based on error. * If omitted, error info from default config will be used. */ getErrorInfo?: (uuiError: UuiError | Error | ApiCallInfo, defaultErrorInfo: ErrorPageInfo) => ErrorPageInfo; /** Callback to handle notification error. * If omitted, default implementation with ErrorNotification will be used. * */ onNotificationError?: (errors: ApiCallInfo) => void; } export declare function ErrorHandler(props: ErrorHandlerProps): React.JSX.Element; //# sourceMappingURL=ErrorHandler.d.ts.map