/** The current trace context, propagated automatically via AsyncLocalStorage. */ export interface TraceContext { readonly spanId: string; readonly traceId: string; /** Set by tool tracing wrappers so sub-agents skip redundant span creation. */ readonly isToolSpan?: boolean; } /** Get the current trace context, if inside a `traced()` block. */ export declare function getTraceContext(): TraceContext | undefined; /** Run a function with the given trace context. */ export declare function runWithTraceContext(ctx: TraceContext, fn: () => T): T;