import { type Attributes, type Context, type Link, type SpanKind } from '@opentelemetry/api'; import { type ReadableSpan, type Sampler, type SamplingResult, type Span, type SpanProcessor } from '@opentelemetry/sdk-trace-base'; type CustomerDecisions = WeakMap; export declare class SampledSpanProcessor implements SpanProcessor { private readonly decisions; private readonly sampler; private readonly processor?; constructor(decisions: CustomerDecisions, sampler: Sampler, processor?: SpanProcessor | undefined); onStart(span: Span, parentContext: Context): void; onEnd(span: ReadableSpan): void; forceFlush(): Promise; shutdown(): Promise; private isSampled; } export declare class SampledParentSampler implements Sampler { private readonly decisions; private readonly sampler; constructor(decisions: CustomerDecisions, sampler: Sampler); shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, attributes: Attributes, links: Link[]): SamplingResult; toString(): string; } export {};