/**
 * Traced analyst wrapper — instruments `analyzeTraces` with spans so the
 * analyst's internal LLM calls (actor + responder turns) appear in the
 * trace tree. Also wraps each actor turn callback with a span.
 *
 * Since the analyst uses @ax-llm/ax internally (an agent framework with
 * its own turn loop), we cannot wrap individual `tc.chat()` calls without
 * forking ax. Instead, we wrap at the boundary:
 *   1. A parent span for the entire analyst run.
 *   2. Per-turn child spans from the `onTurn` callback (captures code,
 *      output size, error status).
 *   3. Summary attributes on the parent (total turns, usage, findings).
 */
import type { TraceEmitter } from './trace/emitter';
import type { AnalyzeTracesInput, AnalyzeTracesOptions, AnalyzeTracesResult } from './trace-analyst/analyst';
export interface TracedAnalystOptions {
    /** TraceEmitter for span emission. */
    emitter: TraceEmitter;
    /** Parent span id. If omitted, uses emitter stack. */
    parentSpanId?: string;
}
/**
 * Run `analyzeTraces` wrapped in a parent span with per-turn child spans.
 */
export declare function tracedAnalyzeTraces(input: AnalyzeTracesInput, options: AnalyzeTracesOptions, traceOpts: TracedAnalystOptions): Promise<AnalyzeTracesResult>;
//# sourceMappingURL=traced-analyst.d.ts.map