import { SpanStatusCode, SpanStatus } from '@opentelemetry/api'; import { IgnoreMatcher } from './types'; /** * Symbol to include on grpc call if it has already emitted an error event. * grpc events that emit 'error' will also emit 'finish' and so only the * error event should be processed. */ export declare const CALL_SPAN_ENDED: unique symbol; /** * Convert a grpc status code to an opentelemetry SpanStatus code. * @param status */ export declare const grpcStatusCodeToOpenTelemetryStatusCode: (status?: any) => SpanStatusCode; /** * Convert grpc status code to an opentelemetry SpanStatus object. * @param status */ export declare const grpcStatusCodeToSpanStatus: (status: number) => SpanStatus; /** * Returns true if the current plugin configuration * ignores the given method. * @param methodName the name of the method * @param ignoredMethods a list of matching patterns * @param onException an error handler for matching exceptions */ export declare const methodIsIgnored: (methodName: string, ignoredMethods?: IgnoreMatcher[] | undefined) => boolean;