export declare const TELEMETRY_SCHEMA_VERSION: 2; export type TelemetryOutcome = "ok" | "error" | "cancelled"; export type CorrelationStatus = "exact_trace" | "exact_session" | "evidenced" | "heuristic" | "ambiguous" | "unlinked"; export interface TelemetryIdentity { readonly traceId: string; readonly "afd.schema.version": typeof TELEMETRY_SCHEMA_VERSION; readonly "afd.project.id": string; readonly "afd.workspace.id": string; readonly "afd.run.id": string; readonly "afd.agent.name": string; readonly "afd.client.session.id"?: string; } export interface TelemetrySpan { readonly spanId: string; readonly parentSpanId?: string; readonly name: string; readonly startedAtUnixMs: number; readonly endedAtUnixMs: number; readonly outcome: TelemetryOutcome; readonly attributes?: Readonly>; } export declare function redactTelemetryAttributes(attributes?: Readonly>): Readonly>; export declare function newTraceId(): string; export declare function newSpanId(): string; export declare function telemetryIdentity(workspace: string, agent: string, secret: Uint8Array, options?: { readonly traceId?: string; readonly runId?: string; }): Promise; export declare function buildOtlpJsonTrace(identity: TelemetryIdentity, spans: readonly TelemetrySpan[]): Record; export declare function emitLoopbackOtlpJson(endpoint: string, trace: Record): Promise; //# sourceMappingURL=telemetry.d.ts.map