import { Span } from './spans'; import { SpanData, GenerationSpanData } from './span-data'; /** * Returns the current time in ISO 8601 format. */ export declare function timeIso(): string; /** * Generates a new trace ID. */ export declare function genTraceId(): string; /** * Generates a new span ID. */ export declare function genSpanId(): string; /** * Generates a new group ID. */ export declare function genGroupId(): string; /** * Helper function to handle response spans, similar to Python's context manager. * @param spanData The data for the span * @param callback The async function to execute within the span * @returns The result of the callback function */ export declare function withResponseSpan(spanData: SpanData, callback: (span: Span) => Promise): Promise; /** * Helper function to handle generation spans, similar to Python's context manager. * @param input The sequence of input messages sent to the model * @param model The model identifier used for the generation * @param modelConfig The model configuration (hyperparameters) used * @param callback The async function to execute within the span * @returns The result of the callback function */ export declare function withGenerationSpan(input: Array> | null, model: string | null, modelConfig: Record | null, callback: (span: Span) => Promise): Promise;