import * as otel_api from "@opentelemetry/api"; import { AsyncHooksContextManager } from "@opentelemetry/context-async-hooks"; export declare const HL_CONTEXT: AsyncHooksContextManager; export declare function getTraceId(): string | undefined; export declare function setTraceId(flowLogId: string): otel_api.Context; export type DecoratorContext = { path: string; type: "prompt" | "tool" | "flow"; version: Record; }; export declare function setDecoratorContext(decoratorContext: DecoratorContext): otel_api.Context; export declare function getDecoratorContext(): DecoratorContext | undefined; export declare class EvaluationContext { sourceDatapointId: string; runId: string; fileId: string; path: string; private _logged; private _callback; constructor({ sourceDatapointId, runId, evalCallback, fileId, path, }: { sourceDatapointId: string; runId: string; evalCallback: (log_id: string) => Promise; fileId: string; path: string; }); get logged(): boolean; logArgsWithContext({ logArgs, forOtel, path, fileId, }: { logArgs: Record; forOtel: boolean; path?: string; fileId?: string; }): [Record, ((log_id: string) => Promise) | null]; } export declare function setEvaluationContext(evaluationContext: EvaluationContext): otel_api.Context; export declare function getEvaluationContext(): EvaluationContext | undefined;