import { type ReactNode, type JSX } from 'react'; import { FallbackProps } from 'react-error-boundary'; /** * @internal */ export type ErrorStateProps = { height: string | number; children?: ReactNode | ((message: string) => JSX.Element); }; /** * Component used in charts to display an error message. To be used with HOC withErrorBoundary() as a fallback component * * @example * ``` * const ErrorBoundedChart = withErrorBoundary(Chart, { FallbackComponent: ErrorState({ height })}); * ``` * @internal */ export declare const ErrorState: { ({ height, children }: ErrorStateProps): (fallbackProps: FallbackProps) => import("react/jsx-runtime.js").JSX.Element; displayName: string; };