import { ClsService } from 'nestjs-cls'; import { ProfilerCoreService } from './profiler-core.service.js'; import { TraceSpanDelegate } from '../trace/trace-span.delegate.js'; import type { SummaryPrimitive } from '../storage/profile-summary.js'; export declare class TracerService { private readonly cls?; private readonly core?; constructor(cls?: ClsService | undefined, core?: ProfilerCoreService | undefined); span(name: string, work: (span: TraceSpanDelegate) => T): T; startSpan(name: string): TraceSpanDelegate; activeSpan(): TraceSpanDelegate; captureError(error: unknown, tags?: Record): void; setAttribute(key: string, value: SummaryPrimitive): void; getAttribute(key: string): SummaryPrimitive | undefined; currentToken(): string | undefined; currentTraceId(): string | undefined; flush(): Promise; private profile; }