/** * Braintrust Tracing Utility * Provides AI call tracing for debugging and analysis */ import * as ai from 'ai'; export { traced, currentSpan, wrapTraced } from 'braintrust'; export declare function initTracing(): void; /** * Flush all pending tracing spans to Braintrust * Call this before process exit to ensure all spans are recorded */ export declare function flushTracing(): Promise; /** * Check if tracing is enabled */ export declare function isTracingEnabled(): boolean; /** * Get wrapped AI SDK functions for automatic tracing * Falls back to original functions if tracing not available */ export declare function getTracedAI(): typeof ai; /** * Wrap a function with tracing * No-op if tracing is not enabled */ export declare function maybeTraced unknown>(fn: T, options?: { type?: string; name?: string; }): T;