import React from "react"; import { ErrorBoundaryProps as ReactErrorBoundaryProps } from "react-error-boundary"; export type ErrorBoundaryProps = Pick; /** * If you care about dark mode, the error boundary should be within an EDS provider. However, for maximum safety, we recommend wrapping the whole app in this component. * You should also use the `onError` prop to track errors. * @param {ErrorBoundaryProps} props - children and onError */ export declare function ErrorBoundary({ children, onError }: ErrorBoundaryProps): React.JSX.Element;