import { z } from 'zod'; export declare type ExactSourceManifestV2 = Readonly<{ rawBytes: Uint8Array; parsedManifest: SourceManifestV2; sha256: string; byteLength: number; }>; /** Extracts the deterministic provider-neutral closure from a parsed manifest. */ export declare function extractSourceManifestClosureV2(manifest: unknown): SourceManifestClosureV2; /** Parses source bytes without creating replacement identity bytes. */ export declare function parseSourceManifestV2Bytes(rawBytes: Uint8Array): SourceManifestV2; /** Reads, validates, and hashes exactly the bytes supplied by a source adapter. */ export declare function readSourceManifestV2(rawBytes: Uint8Array): Promise; export declare const SOURCE_MANIFEST_SCHEMA_VERSION = 2; export declare type SourceManifestArtifactV2 = Readonly<{ path: string; digest: string; length: number; }>; export declare const sourceManifestArtifactV2Schema: z.ZodObject<{ path: z.ZodString; digest: z.ZodString; length: z.ZodNumber; }, z.core.$strict>; export declare type SourceManifestClosureV2 = Readonly<{ artifacts: readonly SourceManifestArtifactV2[]; targetLocks: readonly SourceManifestTargetV2[]; permissions: readonly string[]; runtimeEffects: readonly SourceManifestRuntimeEffectV2[]; }>; export declare type SourceManifestLocalDisplayV2 = Readonly<{ name?: string; slug?: string; }>; export declare const sourceManifestLocalDisplayV2Schema: z.ZodObject<{ name: z.ZodOptional; slug: z.ZodOptional; }, z.core.$strict>; export declare type SourceManifestRuntimeEffectV2 = Readonly<{ kind: string; resources: readonly string[]; }>; export declare const sourceManifestRuntimeEffectV2Schema: z.ZodObject<{ kind: z.ZodString; resources: z.ZodArray; }, z.core.$strict>; export declare type SourceManifestTargetV2 = Readonly<{ target: string; path: string; digest: string; length: number; }>; export declare const sourceManifestTargetV2Schema: z.ZodObject<{ target: z.ZodString; path: z.ZodString; digest: z.ZodString; length: z.ZodNumber; }, z.core.$strict>; export declare type SourceManifestV2 = Readonly<{ schemaVersion: typeof SOURCE_MANIFEST_SCHEMA_VERSION; versionLabel: string; localDisplay?: SourceManifestLocalDisplayV2; targets: readonly SourceManifestTargetV2[]; artifacts: readonly SourceManifestArtifactV2[]; permissions: readonly string[]; runtimeEffects: readonly SourceManifestRuntimeEffectV2[]; }>; export declare const sourceManifestV2Schema: z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; versionLabel: z.ZodString; localDisplay: z.ZodOptional; slug: z.ZodOptional; }, z.core.$strict>>; targets: z.ZodArray>; artifacts: z.ZodArray>; permissions: z.ZodArray; runtimeEffects: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>; export { }