import { SpanStatusCode, SpanStatus } from '@opentelemetry/api'; import { IgnoreMatcher } from './types'; export declare const findIndex: (args: T[], fn: (arg: T) => boolean) => number; /** * Convert a grpc status code to an opentelemetry SpanStatus code. * @param status */ export declare const _grpcStatusCodeToOpenTelemetryStatusCode: (status?: any) => SpanStatusCode; 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;