import { z } from "zod"; export declare const PACKAGE_GRAPH_PROJECTION_DOMAIN = "aih.package-graph.authority-projection.v1"; export declare const PackageGraphAuthorityKindSchema: z.ZodEnum<{ catalog: "catalog"; lock: "lock"; receipt: "receipt"; }>; export declare const PackageGraphAuthoritySchema: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ catalog: "catalog"; lock: "lock"; receipt: "receipt"; }>; sourceDigest: z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; export declare const PackageGraphAuthorityDocumentSchema: z.ZodObject<{ authority: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ catalog: "catalog"; lock: "lock"; receipt: "receipt"; }>; sourceDigest: z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; graph: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; surfaces: z.ZodArray; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>>; packages: z.ZodArray; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; members: z.ZodArray; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>; export declare const PackageGraphAuthorityDocumentsSchema: z.ZodArray; sourceDigest: z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; graph: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; surfaces: z.ZodArray; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>>; packages: z.ZodArray; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; members: z.ZodArray; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>>; export declare const PackageGraphIndexAuthoritySchema: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ catalog: "catalog"; lock: "lock"; receipt: "receipt"; }>; sourceDigest: z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>; projectionDigest: z.ZodString; }, z.core.$strict>; declare const PackageGraphSurfaceClaimSchema: z.ZodObject<{ entityKind: z.ZodLiteral<"surface">; id: z.ZodString; authorityId: z.ZodString; claimDigest: z.ZodString; entity: z.ZodObject<{ id: z.ZodString; source: z.ZodObject<{ provider: z.ZodString; repository: z.ZodString; }, z.core.$strict>; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>; }, z.core.$strict>; declare const PackageGraphPackageClaimSchema: z.ZodObject<{ entityKind: z.ZodLiteral<"package">; id: z.ZodString; authorityId: z.ZodString; claimDigest: z.ZodString; entity: z.ZodObject<{ id: z.ZodString; source: z.ZodObject<{ provider: z.ZodString; repository: z.ZodString; }, z.core.$strict>; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; members: z.ZodArray; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>; }, z.core.$strict>; export declare const PackageGraphClaimSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ entityKind: z.ZodLiteral<"surface">; id: z.ZodString; authorityId: z.ZodString; claimDigest: z.ZodString; entity: z.ZodObject<{ id: z.ZodString; source: z.ZodObject<{ provider: z.ZodString; repository: z.ZodString; }, z.core.$strict>; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ entityKind: z.ZodLiteral<"package">; id: z.ZodString; authorityId: z.ZodString; claimDigest: z.ZodString; entity: z.ZodObject<{ id: z.ZodString; source: z.ZodObject<{ provider: z.ZodString; repository: z.ZodString; }, z.core.$strict>; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; members: z.ZodArray; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>; }, z.core.$strict>], "entityKind">; export declare const PackageGraphConflictClaimDigestSchema: z.ZodObject<{ authorityId: z.ZodString; digest: z.ZodString; }, z.core.$strict>; export declare const PackageGraphConflictSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ entityKind: z.ZodLiteral<"surface">; id: z.ZodString; claimDigests: z.ZodArray>; }, z.core.$strict>, z.ZodObject<{ entityKind: z.ZodLiteral<"package">; id: z.ZodString; claimDigests: z.ZodArray>; }, z.core.$strict>], "entityKind">; declare const PackageGraphIndexStructureSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; authorities: z.ZodArray; sourceDigest: z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>; projectionDigest: z.ZodString; }, z.core.$strict>>; claims: z.ZodArray; id: z.ZodString; authorityId: z.ZodString; claimDigest: z.ZodString; entity: z.ZodObject<{ id: z.ZodString; source: z.ZodObject<{ provider: z.ZodString; repository: z.ZodString; }, z.core.$strict>; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ entityKind: z.ZodLiteral<"package">; id: z.ZodString; authorityId: z.ZodString; claimDigest: z.ZodString; entity: z.ZodObject<{ id: z.ZodString; source: z.ZodObject<{ provider: z.ZodString; repository: z.ZodString; }, z.core.$strict>; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; members: z.ZodArray; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>; }, z.core.$strict>], "entityKind">>; conflicts: z.ZodArray; id: z.ZodString; claimDigests: z.ZodArray>; }, z.core.$strict>, z.ZodObject<{ entityKind: z.ZodLiteral<"package">; id: z.ZodString; claimDigests: z.ZodArray>; }, z.core.$strict>], "entityKind">>; }, z.core.$strict>; type MutablePackageGraphAuthority = z.infer; type MutablePackageGraphAuthorityDocument = z.infer; type MutablePackageGraphIndexAuthority = z.infer; type MutablePackageGraphSurfaceClaim = z.infer; type MutablePackageGraphPackageClaim = z.infer; type MutablePackageGraphClaim = z.infer; type MutablePackageGraphConflictClaimDigest = z.infer; type MutablePackageGraphConflict = z.infer; type MutablePackageGraphIndex = z.infer; export type DeepReadonly = T extends (...args: never[]) => unknown ? T : T extends readonly (infer Item)[] ? readonly DeepReadonly[] : T extends object ? { readonly [Key in keyof T]: DeepReadonly; } : T; export type PackageGraphAuthorityKind = z.infer; export type PackageGraphAuthority = DeepReadonly; export type PackageGraphAuthorityDocument = DeepReadonly; export type PackageGraphIndexAuthority = DeepReadonly; export type PackageGraphSurfaceClaim = DeepReadonly; export type PackageGraphPackageClaim = DeepReadonly; export type PackageGraphClaim = DeepReadonly; export type PackageGraphConflictClaimDigest = DeepReadonly; export type PackageGraphConflict = DeepReadonly; export type PackageGraphIndex = DeepReadonly; export declare const PackageGraphIndexSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; authorities: z.ZodArray; sourceDigest: z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>; projectionDigest: z.ZodString; }, z.core.$strict>>; claims: z.ZodArray; id: z.ZodString; authorityId: z.ZodString; claimDigest: z.ZodString; entity: z.ZodObject<{ id: z.ZodString; source: z.ZodObject<{ provider: z.ZodString; repository: z.ZodString; }, z.core.$strict>; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ entityKind: z.ZodLiteral<"package">; id: z.ZodString; authorityId: z.ZodString; claimDigest: z.ZodString; entity: z.ZodObject<{ id: z.ZodString; source: z.ZodObject<{ provider: z.ZodString; repository: z.ZodString; }, z.core.$strict>; sourceDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; members: z.ZodArray; declaredRisk: z.ZodDefault>>; observedRisk: z.ZodDefault; evidence: z.ZodObject<{ sha256: z.ZodString; subjectDigest: z.ZodDiscriminatedUnion<[z.ZodObject<{ algorithm: z.ZodLiteral<"git-sha1">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ algorithm: z.ZodLiteral<"sha256">; value: z.ZodString; }, z.core.$strict>], "algorithm">; }, z.core.$strict>; verdict: z.ZodEnum<{ blocked: "blocked"; pass: "pass"; unknown: "unknown"; warn: "warn"; }>; findings: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>>>; }, z.core.$strict>; }, z.core.$strict>], "entityKind">>; conflicts: z.ZodArray; id: z.ZodString; claimDigests: z.ZodArray>; }, z.core.$strict>, z.ZodObject<{ entityKind: z.ZodLiteral<"package">; id: z.ZodString; claimDigests: z.ZodArray>; }, z.core.$strict>], "entityKind">>; }, z.core.$strict>; export declare function buildPackageGraphIndex(input: unknown): PackageGraphIndex; export declare function serializePackageGraphIndex(input: unknown): string; export {};