import { DetectedError } from '@backstage/plugin-kubernetes-common';
import type { TypeMeta } from '@kubernetes-models/base';
import type { IIoK8sApimachineryPkgApisMetaV1ObjectMeta as V1ObjectMeta } from '@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta';
/**
 * Context for detected errors
 *
 * @public
 */
export declare const DetectedErrorsContext: import("react").Context<DetectedError[]>;
/**
 *
 * @public
 */
export type ErrorMatcher = {
    metadata?: V1ObjectMeta;
} & TypeMeta;
/**
 * Find errors which match the resource
 *
 * @public
 */
export declare const useMatchingErrors: (matcher: ErrorMatcher) => DetectedError[];
