import { type NormalFormWitness } from "../entropy/normal-form.js"; export declare const FABRIC_EXECUTION_TRACE_KIND: "pi-fabric.execution"; export declare const FABRIC_EXECUTION_TRACE_VERSION: 1; export declare const FABRIC_EXECUTION_TRACE_MAX_BYTES: number; export declare const MAX_TRACE_DEPTH = 12; export type FabricTraceJsonPrimitive = string | number | boolean | null; export type FabricTraceJsonValue = FabricTraceJsonPrimitive | FabricTraceJsonValue[] | { [key: string]: FabricTraceJsonValue; }; export type FabricExecutionOutcomeV1 = "succeeded" | "failed" | "aborted" | "timed_out"; export type FabricExecutionFailureStageV1 = "resolve" | "prepare" | "validate" | "approve" | "invoke" | "guard"; export interface FabricExecutionTraceOperationV1 { type: "call"; sequence: number; ref: string; provider?: string; action?: string; args: { [key: string]: FabricTraceJsonValue; }; outcome: FabricExecutionOutcomeV1; normalization?: NormalFormWitness; failureStage?: FabricExecutionFailureStageV1; error?: string; result?: FabricTraceJsonValue; resultTruncated?: boolean; } export interface FabricExecutionTraceCountsV1 { droppedValues: number; truncatedValues: number; redactedValues: number; droppedOperations: number; } export interface FabricExecutionTraceV1 { kind: typeof FABRIC_EXECUTION_TRACE_KIND; version: typeof FABRIC_EXECUTION_TRACE_VERSION; outcome: FabricExecutionOutcomeV1; phases: string[]; operations: FabricExecutionTraceOperationV1[]; counts: FabricExecutionTraceCountsV1; error?: string; } export declare class FabricTraceSafeError extends Error { } export declare class FabricResolutionError extends FabricTraceSafeError { } export declare const isFabricExecutionTraceOperationV1: (value: unknown) => value is FabricExecutionTraceOperationV1; export declare const isFabricExecutionTraceV1: (value: unknown) => value is FabricExecutionTraceV1; export declare const readFabricExecutionTraceV1: (value: unknown) => FabricExecutionTraceV1 | undefined; //# sourceMappingURL=trace-schema.d.ts.map