import React, { ComponentType } from 'react'; export declare type ErrorBoundaryProps = { teamName: string; }; export declare const withErrorBoundary: (errorBoundaryProps?: ErrorBoundaryProps | undefined) =>
(BaseComponent: React.ComponentType
) => { new (props: P | Readonly
): {
state: {
hasError: boolean;
};
componentDidCatch(error: Error): void;
render(): React.JSX.Element | null;
context: unknown;
setState ) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly ;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly , nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
getSnapshotBeforeUpdate?(prevProps: Readonly , prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly , prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly , nextState: Readonly<{}>, nextContext: any): void;
};
new (props: P, context: any): {
state: {
hasError: boolean;
};
componentDidCatch(error: Error): void;
render(): React.JSX.Element | null;
context: unknown;
setState ) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly ;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly , nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
getSnapshotBeforeUpdate?(prevProps: Readonly , prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly , prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly , nextState: Readonly<{}>, nextContext: any): void;
};
getDerivedStateFromError(): {
hasError: boolean;
};
contextType?: React.Context