/** * DSH → CLS Trace Coordinator * * Converts DSH session/event lifecycle and LLM streams into CLS-formatted spans. * Span hierarchy: entry → agent → step → chat/tool */ import type { ResolvedClsConfig } from './config.js'; import type { DshGenerateOptions, DshLogger, DshSession, DshSessionEvent, DshStreamChunk } from './dsh-types.js'; export declare class DshClsCoordinator { private readonly sessions; private readonly flusher; private readonly config; private readonly logger; private readonly hostname; private readonly serviceInstanceId; constructor(config: ResolvedClsConfig, logger: DshLogger); start(): void; shutdown(): Promise; adoptSession(session: DshSession): void; disposeSession(session: DshSession): void; onSessionEvent(session: DshSession, event: DshSessionEvent): void; interceptLlm(options: DshGenerateOptions, next: () => AsyncIterable): AsyncIterable; closeAll(reason?: string): void; private ensureSession; private startTurn; private startStep; private startLlm; private observeLlmStream; private observeLlmChunk; private finishLlm; private failLlm; private startTool; private endTool; private closeStep; private captureTurnInput; private captureTurnOutput; private closeTurn; private commonAttributes; private buildEntrySpanEnd; private buildAgentSpanEnd; private buildStepSpan; private buildChatSpan; private buildToolSpan; private debug; private warn; } //# sourceMappingURL=coordinator.d.ts.map