import type { Sampler } from "../sampler.js"; import type { SpanInterface, SpanOptions, TraceOptions } from "../types.js"; type RequestFn = (method: string, path: string, body?: unknown) => Promise; export declare class TracingClient { private readonly request; private readonly serviceName; private readonly enabled; private readonly sampler; private pendingSpans; private flushTimer; private droppedSpans; private destroyed; private readonly flushIntervalMs; private readonly maxBatchSize; private readonly maxQueueSize; private readonly maxRetries; constructor(request: RequestFn, serviceName: string, enabled: boolean, sampler: Sampler); destroy(): void; trace(name: string, fn: (span: SpanInterface) => Promise, options?: TraceOptions): Promise; startSpan(name: string, options?: SpanOptions): SpanInterface; captureError(error: Error, context?: Record): void; private addSpan; flush(): Promise; } export {}; //# sourceMappingURL=tracing.d.ts.map