/** Minimal subset of OTel Span interface */ export interface SpanLike { setAttribute(key: string, value: unknown): this; setStatus(status: { code: number; message?: string; }): this; recordException(err: Error): void; end(): void; } /** Minimal subset of OTel Tracer interface */ export interface TracerLike { startSpan(name: string, options?: unknown): SpanLike; } export declare class ONITracer { private readonly tracer; constructor(tracer: TracerLike | null); startGraphSpan(operation: string, opts: { threadId: string; agentId?: string; }): SpanLike; startNodeSpan(nodeName: string, opts: { threadId: string; step: number; agentId?: string; }): SpanLike; startToolSpan(toolName: string, opts: { threadId: string; step: number; }): SpanLike; startCheckpointSpan(operation: string, opts: { threadId: string; }): SpanLike; startModelSpan(provider: string, modelId: string, opts: { threadId: string; step: number; }): SpanLike; recordError(span: SpanLike, error: Error): void; endSpan(span: SpanLike): void; } //# sourceMappingURL=telemetry.d.ts.map