import type { FabricExecutionOutcomeV1, FabricTraceJsonValue } from "../audit/trace.js"; export declare const FABRIC_BRANCH_SUMMARY_KIND: "pi-fabric.branch-summary"; export declare const FABRIC_BRANCH_SUMMARY_VERSION: 1; export declare const FABRIC_BRANCH_SUMMARY_MAX_BYTES: number; export declare const FABRIC_BRANCH_SUMMARY_MAX_FACTS = 256; interface BranchFactBase { entryId: string; subordinal: string; address: string; } interface FabricBranchUserFactV1 extends BranchFactBase { kind: "user"; text: string; } interface FabricBranchCustomMessageFactV1 extends BranchFactBase { kind: "customMessage"; customType: string; text: string; display: boolean; details?: FabricTraceJsonValue; } interface FabricBranchPhaseFactV1 extends BranchFactBase { kind: "phase"; phase: string; } export interface FabricBranchOperationFactV1 extends BranchFactBase { kind: "operation"; ref: string; provider?: string; action?: string; tool: string; args: Record; outcome: FabricExecutionOutcomeV1; error?: string; result?: FabricTraceJsonValue; } export type FabricBranchFactV1 = FabricBranchUserFactV1 | FabricBranchCustomMessageFactV1 | FabricBranchPhaseFactV1 | FabricBranchOperationFactV1; export interface FabricBranchSummaryDetailsV1 { kind: typeof FABRIC_BRANCH_SUMMARY_KIND; version: typeof FABRIC_BRANCH_SUMMARY_VERSION; source: { firstEntryId: string; lastEntryId: string; entryCount: number; /** Canonical abandoned-branch provenance. Absent only on older v1 envelopes. */ oldLeafId?: string | null; }; facts: FabricBranchFactV1[]; omittedFacts: number; sections: string[]; request: { text: string; sourceBytes: number; truncated: boolean; }; } export declare const readFabricBranchSummaryDetailsV1: (value: unknown) => FabricBranchSummaryDetailsV1 | undefined; export {}; //# sourceMappingURL=branch-details.d.ts.map