import { HrTime, Span, Attributes, SpanKind, SpanStatus } from '@opentelemetry/api'; import { ReadableSpan } from '@opentelemetry/sdk-trace'; import { MetricReader } from '@opentelemetry/sdk-metrics'; import { InstrumentationBase } from '@opentelemetry/instrumentation'; export declare const assertSpan: (span: ReadableSpan, kind: SpanKind, attributes: Attributes, events: TimedEvent[], status: SpanStatus) => void; export declare const assertPropagation: (childSpan: ReadableSpan, parentSpan: Span) => void; /** * Represents a timed event. * A timed event is an event with a timestamp. */ export interface TimedEvent { time: HrTime; /** The name of the event. */ name: string; /** The attributes of the event. */ attributes?: Attributes; /** Count of attributes of the event that were dropped due to collection limits */ droppedAttributesCount?: number; } export declare const getPackageVersion: (packageName: string) => any; export declare class TestMetricReader extends MetricReader { constructor(); protected onForceFlush(): Promise; protected onShutdown(): Promise; } export declare const initMeterProvider: (instrumentation: InstrumentationBase) => TestMetricReader; //# sourceMappingURL=test-utils.d.ts.map