import type { RunContext, HarnessHooks } from '../types/index.js'; import type { TracingConfig, Span, MetricsConfig, ObservabilityMetrics, SessionTelemetry } from '../types/index.js'; import { TracingService } from '../services/TracingService.js'; export declare function initTracing(config: TracingConfig): void; export declare function startSpan(name: string, attributes?: Record, parentSpanId?: string): Span; export declare function endSpan(span: Span, status?: 'success' | 'error', error?: Error): Span; export declare function addSpanEvent(span: Span, name: string, attributes?: Record): void; export declare function getCurrentSpan(): Span | undefined; /** * Creates tracing hooks. * @param service Optional TracingService instance. If not provided, uses the global singleton (legacy). */ export declare function createTracingHooks(service?: TracingService): HarnessHooks; export declare function createObservabilityMetrics(config?: MetricsConfig): ObservabilityMetrics; export declare function initMetrics(metrics: ObservabilityMetrics): void; export declare function getMetrics(): ObservabilityMetrics; export declare function createObservabilityHooks(service?: ObservabilityMetrics): HarnessHooks; export declare function captureSessionTelemetry(context: RunContext, result: { success: boolean; error?: Error; }): SessionTelemetry; export declare function createTelemetryHooks(): HarnessHooks;