import React, { ComponentClass, ErrorInfo } from 'react'; type SlackChannel = { name: string; href?: string; }; /** @public */ export type ErrorBoundaryProps = React.PropsWithChildren<{ slackChannel?: string | SlackChannel; onError?: (error: Error, errorInfo: string) => null; }>; type State = { error?: Error; errorInfo?: ErrorInfo; }; /** @public */ export declare const ErrorBoundary: ComponentClass; export {};