import { z } from "zod"; export declare const RECEIPT_V1_SCHEMA_ID = "lyt.receipt"; export declare const RECEIPT_V1_MAJOR = 1; export declare const RECEIPT_V1_MINOR = 0; export declare const RECEIPT_V1_TIMESTAMP_MAX_LENGTH = 64; export declare function receiptSafeTextOrFallback(value: string, fallback: string): string; export declare function receiptSafeErrorSummary(error: unknown, fallback: string): string; export type RedactedReceiptInput = { type: "array" | "object" | "primitive"; count: number; depth: number; truncated: boolean; redacted: true; }; export declare const ReceiptV1ProducerSchema: z.ZodEffects; pod_id: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { kind: "pod"; pod_id: string; }, { kind: "pod"; pod_id: string; }>, z.ZodObject<{ kind: z.ZodLiteral<"mesh">; mesh_id: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { kind: "mesh"; mesh_id: string; }, { kind: "mesh"; mesh_id: string; }>, z.ZodObject<{ kind: z.ZodLiteral<"vault">; vault_id: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { kind: "vault"; vault_id: string; }, { kind: "vault"; vault_id: string; }>, z.ZodObject<{ kind: z.ZodLiteral<"release">; release_id: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { kind: "release"; release_id: string; }, { kind: "release"; release_id: string; }>, z.ZodObject<{ kind: z.ZodLiteral<"system">; }, "strict" | "strip", z.ZodTypeAny, { kind: "system"; }, { kind: "system"; }>]>; timestamps: z.ZodObject<{ started_at: z.ZodString; finished_at: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { started_at: string; finished_at: string; }, { started_at: string; finished_at: string; }>; replay: z.ZodObject<{ disposition: z.ZodEnum<["new", "replayed", "resumed", "rejected"]>; key_digest: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }, { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }>; status: z.ZodEnum<["success", "no-op", "replayed", "refused", "partial", "failed"]>; exit_code: z.ZodNumber; mutations: z.ZodObject<{ local: z.ZodNumber; remote: z.ZodNumber; }, "strict" | "strip", z.ZodTypeAny, { local: number; remote: number; }, { local: number; remote: number; }>; evidence: z.ZodObject<{ before: z.ZodArray; digest: z.ZodOptional; count: z.ZodOptional; }, "strict" | "strip", z.ZodTypeAny, { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }, { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }>, "many">; after: z.ZodArray; digest: z.ZodOptional; count: z.ZodOptional; }, "strict" | "strip", z.ZodTypeAny, { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }, { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }>, "many">; }, "strict" | "strip", z.ZodTypeAny, { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }, { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }>; recommendations: z.ZodOptional; action: z.ZodEnum<["create", "already-available"]>; alias: z.ZodString; canonical_target: z.ZodString; vault_rid: z.ZodString; reason: z.ZodEnum<["bare-leaf-collision", "long-qualified-address"]>; argv: z.ZodArray; }, "strict" | "strip", z.ZodTypeAny, { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }, { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }>, { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }, { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }>, "many">>; next_action: z.ZodNullable; }, "strict" | "strip", z.ZodTypeAny, { code: string; summary: string; }, { code: string; summary: string; }>>; error: z.ZodNullable; retryable: z.ZodBoolean; }, "strict" | "strip", z.ZodTypeAny, { code: string; summary: string; retryable: boolean; }, { code: string; summary: string; retryable: boolean; }>>; schema_id: z.ZodLiteral<"lyt.receipt">; schema_version: z.ZodObject<{ major: z.ZodType; minor: z.ZodType; }, "strict" | "strip", z.ZodTypeAny, { major: number; minor: number; }, { major: number; minor: number; }>; }, "strict" | "strip", z.ZodTypeAny, { status: "refused" | "success" | "failed" | "replayed" | "no-op" | "partial"; evidence: { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }; error: { code: string; summary: string; retryable: boolean; } | null; scope: { kind: "pod"; pod_id: string; } | { kind: "mesh"; mesh_id: string; } | { kind: "vault"; vault_id: string; } | { kind: "release"; release_id: string; } | { kind: "system"; }; operation_id: string; operation: string; attempt_id: string; timestamps: { started_at: string; finished_at: string; }; replay: { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }; exit_code: number; mutations: { local: number; remote: number; }; next_action: { code: string; summary: string; } | null; schema_id: "lyt.receipt"; schema_version: { major: number; minor: number; }; recommendations?: { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }[] | undefined; }, { status: "refused" | "success" | "failed" | "replayed" | "no-op" | "partial"; evidence: { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }; error: { code: string; summary: string; retryable: boolean; } | null; scope: { kind: "pod"; pod_id: string; } | { kind: "mesh"; mesh_id: string; } | { kind: "vault"; vault_id: string; } | { kind: "release"; release_id: string; } | { kind: "system"; }; operation_id: string; operation: string; attempt_id: string; timestamps: { started_at: string; finished_at: string; }; replay: { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }; exit_code: number; mutations: { local: number; remote: number; }; next_action: { code: string; summary: string; } | null; schema_id: "lyt.receipt"; schema_version: { major: number; minor: number; }; recommendations?: { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }[] | undefined; }>, { status: "refused" | "success" | "failed" | "replayed" | "no-op" | "partial"; evidence: { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }; error: { code: string; summary: string; retryable: boolean; } | null; scope: { kind: "pod"; pod_id: string; } | { kind: "mesh"; mesh_id: string; } | { kind: "vault"; vault_id: string; } | { kind: "release"; release_id: string; } | { kind: "system"; }; operation_id: string; operation: string; attempt_id: string; timestamps: { started_at: string; finished_at: string; }; replay: { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }; exit_code: number; mutations: { local: number; remote: number; }; next_action: { code: string; summary: string; } | null; schema_id: "lyt.receipt"; schema_version: { major: number; minor: number; }; recommendations?: { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }[] | undefined; }, { status: "refused" | "success" | "failed" | "replayed" | "no-op" | "partial"; evidence: { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }; error: { code: string; summary: string; retryable: boolean; } | null; scope: { kind: "pod"; pod_id: string; } | { kind: "mesh"; mesh_id: string; } | { kind: "vault"; vault_id: string; } | { kind: "release"; release_id: string; } | { kind: "system"; }; operation_id: string; operation: string; attempt_id: string; timestamps: { started_at: string; finished_at: string; }; replay: { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }; exit_code: number; mutations: { local: number; remote: number; }; next_action: { code: string; summary: string; } | null; schema_id: "lyt.receipt"; schema_version: { major: number; minor: number; }; recommendations?: { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }[] | undefined; }>; export declare const ReceiptV1ConsumerSchema: z.ZodEffects; pod_id: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { kind: "pod"; pod_id: string; }, { kind: "pod"; pod_id: string; }>, z.ZodObject<{ kind: z.ZodLiteral<"mesh">; mesh_id: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { kind: "mesh"; mesh_id: string; }, { kind: "mesh"; mesh_id: string; }>, z.ZodObject<{ kind: z.ZodLiteral<"vault">; vault_id: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { kind: "vault"; vault_id: string; }, { kind: "vault"; vault_id: string; }>, z.ZodObject<{ kind: z.ZodLiteral<"release">; release_id: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { kind: "release"; release_id: string; }, { kind: "release"; release_id: string; }>, z.ZodObject<{ kind: z.ZodLiteral<"system">; }, "strict" | "strip", z.ZodTypeAny, { kind: "system"; }, { kind: "system"; }>]>; timestamps: z.ZodObject<{ started_at: z.ZodString; finished_at: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { started_at: string; finished_at: string; }, { started_at: string; finished_at: string; }>; replay: z.ZodObject<{ disposition: z.ZodEnum<["new", "replayed", "resumed", "rejected"]>; key_digest: z.ZodString; }, "strict" | "strip", z.ZodTypeAny, { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }, { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }>; status: z.ZodEnum<["success", "no-op", "replayed", "refused", "partial", "failed"]>; exit_code: z.ZodNumber; mutations: z.ZodObject<{ local: z.ZodNumber; remote: z.ZodNumber; }, "strict" | "strip", z.ZodTypeAny, { local: number; remote: number; }, { local: number; remote: number; }>; evidence: z.ZodObject<{ before: z.ZodArray; digest: z.ZodOptional; count: z.ZodOptional; }, "strict" | "strip", z.ZodTypeAny, { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }, { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }>, "many">; after: z.ZodArray; digest: z.ZodOptional; count: z.ZodOptional; }, "strict" | "strip", z.ZodTypeAny, { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }, { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }>, "many">; }, "strict" | "strip", z.ZodTypeAny, { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }, { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }>; recommendations: z.ZodOptional; action: z.ZodEnum<["create", "already-available"]>; alias: z.ZodString; canonical_target: z.ZodString; vault_rid: z.ZodString; reason: z.ZodEnum<["bare-leaf-collision", "long-qualified-address"]>; argv: z.ZodArray; }, "strict" | "strip", z.ZodTypeAny, { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }, { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }>, { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }, { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }>, "many">>; next_action: z.ZodNullable; }, "strict" | "strip", z.ZodTypeAny, { code: string; summary: string; }, { code: string; summary: string; }>>; error: z.ZodNullable; retryable: z.ZodBoolean; }, "strict" | "strip", z.ZodTypeAny, { code: string; summary: string; retryable: boolean; }, { code: string; summary: string; retryable: boolean; }>>; schema_id: z.ZodLiteral<"lyt.receipt">; schema_version: z.ZodObject<{ major: z.ZodType; minor: z.ZodType; }, "strict" | "strip", z.ZodTypeAny, { major: number; minor: number; }, { major: number; minor: number; }>; }, "strict" | "strip", z.ZodTypeAny, { status: "refused" | "success" | "failed" | "replayed" | "no-op" | "partial"; evidence: { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }; error: { code: string; summary: string; retryable: boolean; } | null; scope: { kind: "pod"; pod_id: string; } | { kind: "mesh"; mesh_id: string; } | { kind: "vault"; vault_id: string; } | { kind: "release"; release_id: string; } | { kind: "system"; }; operation_id: string; operation: string; attempt_id: string; timestamps: { started_at: string; finished_at: string; }; replay: { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }; exit_code: number; mutations: { local: number; remote: number; }; next_action: { code: string; summary: string; } | null; schema_id: "lyt.receipt"; schema_version: { major: number; minor: number; }; recommendations?: { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }[] | undefined; }, { status: "refused" | "success" | "failed" | "replayed" | "no-op" | "partial"; evidence: { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }; error: { code: string; summary: string; retryable: boolean; } | null; scope: { kind: "pod"; pod_id: string; } | { kind: "mesh"; mesh_id: string; } | { kind: "vault"; vault_id: string; } | { kind: "release"; release_id: string; } | { kind: "system"; }; operation_id: string; operation: string; attempt_id: string; timestamps: { started_at: string; finished_at: string; }; replay: { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }; exit_code: number; mutations: { local: number; remote: number; }; next_action: { code: string; summary: string; } | null; schema_id: "lyt.receipt"; schema_version: { major: number; minor: number; }; recommendations?: { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }[] | undefined; }>, { status: "refused" | "success" | "failed" | "replayed" | "no-op" | "partial"; evidence: { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }; error: { code: string; summary: string; retryable: boolean; } | null; scope: { kind: "pod"; pod_id: string; } | { kind: "mesh"; mesh_id: string; } | { kind: "vault"; vault_id: string; } | { kind: "release"; release_id: string; } | { kind: "system"; }; operation_id: string; operation: string; attempt_id: string; timestamps: { started_at: string; finished_at: string; }; replay: { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }; exit_code: number; mutations: { local: number; remote: number; }; next_action: { code: string; summary: string; } | null; schema_id: "lyt.receipt"; schema_version: { major: number; minor: number; }; recommendations?: { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }[] | undefined; }, { status: "refused" | "success" | "failed" | "replayed" | "no-op" | "partial"; evidence: { before: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; after: { kind: string; subject: string; digest?: string | undefined; count?: number | undefined; }[]; }; error: { code: string; summary: string; retryable: boolean; } | null; scope: { kind: "pod"; pod_id: string; } | { kind: "mesh"; mesh_id: string; } | { kind: "vault"; vault_id: string; } | { kind: "release"; release_id: string; } | { kind: "system"; }; operation_id: string; operation: string; attempt_id: string; timestamps: { started_at: string; finished_at: string; }; replay: { disposition: "new" | "replayed" | "resumed" | "rejected"; key_digest: string; }; exit_code: number; mutations: { local: number; remote: number; }; next_action: { code: string; summary: string; } | null; schema_id: "lyt.receipt"; schema_version: { major: number; minor: number; }; recommendations?: { reason: "bare-leaf-collision" | "long-qualified-address"; kind: "vault-alias"; vault_rid: string; alias: string; action: "create" | "already-available"; canonical_target: string; argv: string[]; }[] | undefined; }>; export type ReceiptV1 = z.infer; export type UnsupportedReceiptSchema = { status: "unsupported-receipt-schema"; success: false; raw: RedactedReceiptInput; }; export type InvalidReceipt = { status: "invalid-receipt"; success: false; raw: RedactedReceiptInput; issues: ReceiptValidationIssue[]; }; export type ReceiptValidationIssue = { code: "invalid-receipt-field"; path: ReadonlyArray; message: "receipt field is invalid"; }; export type ReceiptV1Consumption = { status: "accepted"; success: boolean; receipt: z.infer; } | UnsupportedReceiptSchema | InvalidReceipt; export declare function parseReceiptV1ForEmission(value: unknown): ReceiptV1; export declare function consumeReceiptV1(value: unknown): ReceiptV1Consumption; //# sourceMappingURL=receipt-v1.d.ts.map