import type { Attributes, SpanOptions, Tracer } from "@opentelemetry/api"; import type { TelemetrySignalLevel } from "../types"; export declare const setSpanTracer: (tracer?: Tracer) => void; export declare const setSpanEventsEnabled: (level?: TelemetrySignalLevel) => void; export declare const startSpan: (name: string, options?: SpanOptions) => import("@opentelemetry/api").Span & { runWithContext: (fn: () => Promise | T) => T | Promise; recordError: (_error: unknown, _setError: boolean) => void; finish: () => void; isExisting: boolean; }; export declare const withSpan: (name: string, run: () => Promise | T, options?: SpanOptions) => Promise; export declare const addSpanEvent: (name: string, attributes?: Attributes) => void; export declare const setSpanAttributes: (attributes?: Attributes) => void;