import type { ProfilerTag } from '../analysis/profiler-tag.interface.js'; import type { TraceSpan, TraceSpanKind, TraceSpanStatus } from '../interfaces/profile.interface.js'; export declare class TraceSpanDelegate { private readonly id; private readonly name; private readonly meta; private readonly finish?; private ended; private failed; constructor(id: string, name: string, meta: Record, finish?: ((outcome: SpanOutcome) => void) | undefined); get spanId(): string; get label(): string; setTag(key: string, value: string | number | boolean): this; addTags(tags: Record): this; markFailed(): this; end(outcome?: SpanOutcome): void; } export interface SpanOutcome { status?: TraceSpanStatus; kind?: TraceSpanKind; tags?: ProfilerTag[]; source?: TraceSpan['source']; } export declare const INERT_SPAN: TraceSpanDelegate;