/**
 * Copyright Zendesk, Inc.
 *
 * Use of this source code is governed under the Apache License, Version 2.0
 * found at http://www.apache.org/licenses/LICENSE-2.0.
 */
import { Component, type DependencyList } from 'react';
export interface ErrorMetadata {
    error: Error;
    errorInfo: React.ErrorInfo;
}
export declare const useOnErrorBoundaryDidCatch: (onCaughtError: (metadata: ErrorMetadata) => void) => void;
export declare const useOnComponentUnmount: (onComponentUnmountCallback: (metadata?: ErrorMetadata) => void, dependencies?: DependencyList) => void;
export declare class ReactMeasureErrorBoundary<P = {}, S = {}, SS = any> extends Component<P, S, SS> {
    componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
}
