export interface OriginalInputReference { version: 1; /** Relative to the needs file, or to the World configuration after init copies it. */ root: string; manifest: "manifest.json"; sha256: string; inventoryDigest: string; } export interface OriginalInputCapability { version: 1; manifestArg: "--original-inputs"; rootArg: "--original-root"; digestArg: "--original-inputs-sha256"; /** Image paths whose complete overlay contents the consumer requires. */ paths: string[]; } export interface OriginalInputEntry { target: string; type: "file" | "directory" | "link"; mode: number; bytes?: number; sha256?: string; object?: string; link?: string; source: { kind: "image" | "project"; path: string; layer?: string; blob?: string; }; } export interface ManagedOriginalInputs { kind: "volter.managed-original-inputs"; version: 1; service: string; family: string; /** Canonical selected service declaration; used to refuse a different stack on reuse. */ declaration: string; source: { image: string; manifest: string; config: string; layers: string[]; commit: string; compose: string; composeSha256: string; composeBytes: number; composeObject: string; }; /** Authenticated complete image metadata, before the declared mounts overlay it. */ imageInventory: Array<{ target: string; type: string; mode: number; bytes: number; layer: string; link?: string; }>; imageInventoryDigest: string; projectInventory: Array<{ path: string; mode: number; blob: string; }>; projectInventoryDigest: string; roots: string[]; /** Complete contents beneath roots, plus every original project bind mount. */ inventory: OriginalInputEntry[]; inventoryDigest: string; start: { imageConfig: Record; service: Record; imageEntrypoint: string[] | null; imageCommand: string[] | null; command?: string[]; entrypoint?: string[]; environment: Record; envFiles: Array<{ path: string; bytes: number; sha256: string; object: string; }>; unset: string[]; selfHosts: string[]; mounts: Array<{ kind: string; source?: string; target: string; readOnly: boolean; }>; }; } export declare const originalTarget: (path: string) => boolean; export declare const originalRelative: (path: string) => boolean; export declare function referenceOf(value: unknown): OriginalInputReference; /** Hash and validate neutral carrier data. The caller supplies I/O; no pack/vendor behavior or import effects. */ export declare function readSnapshot(bytes: Uint8Array, expected: string, readObject: (path: string, bytes: number) => Uint8Array): { manifest: ManagedOriginalInputs; objects: ReadonlyMap; };