import type { ClsService } from 'nestjs-cls'; import { TraceSpanDelegate } from './trace-span.delegate.js'; import type { Profile, TraceSpanKind } from '../interfaces/profile.interface.js'; export declare function openSpan(cls: ClsService | undefined, profile: Profile, name: string, kind?: TraceSpanKind): TraceSpanDelegate; export declare function runInSpan(cls: ClsService | undefined, name: string, work: (span: TraceSpanDelegate) => T, kind?: TraceSpanKind): T; export declare function runAsSpanParent(cls: ClsService | undefined, work: (spanId: string | undefined) => T): T;