import { z } from 'zod'; declare const REGISTRY_MANIFEST_SCHEMA_VERSION = "fragments.registry.v1"; declare const REGISTRY_ARTIFACT_SCHEMA_VERSION = "fragments.registry-artifact.v1"; declare const REGISTRY_INSTALL_RECEIPT_SCHEMA_VERSION = "fragments.registry-lock.v1"; declare const registryDependencyTypeSchema: z.ZodEnum<["runtime", "peer", "dev", "optional"]>; declare const registryDependencySchema: z.ZodObject<{ name: z.ZodString; versionRange: z.ZodString; type: z.ZodEnum<["runtime", "peer", "dev", "optional"]>; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>; declare const registryFileRoleSchema: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>; declare const registryFileSchema: z.ZodObject<{ path: z.ZodEffects, string, string>; role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; contentRef: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }>; declare const registryFileContentSchema: z.ZodObject<{ path: z.ZodEffects, string, string>; content: z.ZodString; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; contentType: string; sha256: string; content: string; }, { path: string; size: number; contentType: string; sha256: string; content: string; }>; declare const registrySourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"package">; packageName: z.ZodString; version: z.ZodOptional; rootPath: z.ZodOptional>; commitSha: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; }, { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"github">; repoFullName: z.ZodString; commitSha: z.ZodString; path: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; }, { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"local">; rootPath: z.ZodOptional>; commitSha: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; }, { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"manual">; label: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "manual"; label: string; }, { kind: "manual"; label: string; }>]>; declare const registryComponentExportSchema: z.ZodObject<{ name: z.ZodString; kind: z.ZodDefault>; path: z.ZodOptional, string, string>>; }, "strip", z.ZodTypeAny, { kind: "type" | "utility" | "style" | "component" | "hook"; name: string; path?: string | undefined; }, { name: string; path?: string | undefined; kind?: "type" | "utility" | "style" | "component" | "hook" | undefined; }>; declare const registryComponentSchema: z.ZodObject<{ componentId: z.ZodString; publicRef: z.ZodString; name: z.ZodString; status: z.ZodDefault; tier: z.ZodDefault>; category: z.ZodOptional; files: z.ZodArray, string, string>; role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; contentRef: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }>, "many">; styleFiles: z.ZodDefault, string, string>, "many">>; tokenDependencies: z.ZodDefault>; runtimeDependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; peerDependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; internalDependencies: z.ZodDefault>; exports: z.ZodDefault>; path: z.ZodOptional, string, string>>; }, "strip", z.ZodTypeAny, { kind: "type" | "utility" | "style" | "component" | "hook"; name: string; path?: string | undefined; }, { name: string; path?: string | undefined; kind?: "type" | "utility" | "style" | "component" | "hook" | undefined; }>, "many">>; contract: z.ZodOptional; examples: z.ZodDefault>; provenance: z.ZodDefault>; }, "strip", z.ZodTypeAny, { status: string; name: string; componentId: string; publicRef: string; tier: "custom" | "utility" | "composition" | "core"; examples: unknown[]; files: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; styleFiles: string[]; tokenDependencies: string[]; runtimeDependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; peerDependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; internalDependencies: string[]; exports: { kind: "type" | "utility" | "style" | "component" | "hook"; name: string; path?: string | undefined; }[]; provenance: Record; category?: string | undefined; contract?: unknown; }, { name: string; componentId: string; publicRef: string; files: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; status?: string | undefined; category?: string | undefined; contract?: unknown; tier?: "custom" | "utility" | "composition" | "core" | undefined; examples?: unknown[] | undefined; styleFiles?: string[] | undefined; tokenDependencies?: string[] | undefined; runtimeDependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; peerDependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; internalDependencies?: string[] | undefined; exports?: { name: string; path?: string | undefined; kind?: "type" | "utility" | "style" | "component" | "hook" | undefined; }[] | undefined; provenance?: Record | undefined; }>; declare const registryEntrypointSchema: z.ZodObject<{ specifier: z.ZodString; sourcePath: z.ZodEffects, string, string>; }, "strip", z.ZodTypeAny, { sourcePath: string; specifier: string; }, { sourcePath: string; specifier: string; }>; declare const registryInstallProfileSchema: z.ZodObject<{ name: z.ZodString; targetPath: z.ZodEffects; importPath: z.ZodString; stylePath: z.ZodOptional>; includeTests: z.ZodDefault; }, "strip", z.ZodTypeAny, { name: string; importPath: string; targetPath: string; includeTests: boolean; stylePath?: string | undefined; }, { name: string; importPath: string; targetPath: string; stylePath?: string | undefined; includeTests?: boolean | undefined; }>; declare const registryManifestDraftSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"fragments.registry.v1">; registryId: z.ZodString; name: z.ZodString; channel: z.ZodString; version: z.ZodString; contractVersionId: z.ZodOptional; fcid: z.ZodOptional; generatedAt: z.ZodString; source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"package">; packageName: z.ZodString; version: z.ZodOptional; rootPath: z.ZodOptional>; commitSha: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; }, { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"github">; repoFullName: z.ZodString; commitSha: z.ZodString; path: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; }, { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"local">; rootPath: z.ZodOptional>; commitSha: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; }, { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"manual">; label: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "manual"; label: string; }, { kind: "manual"; label: string; }>]>; packageFiles: z.ZodDefault, string, string>; role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; contentRef: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }>, "many">>; entrypoints: z.ZodDefault, string, string>; }, "strip", z.ZodTypeAny, { sourcePath: string; specifier: string; }, { sourcePath: string; specifier: string; }>, "many">>; components: z.ZodRecord; tier: z.ZodDefault>; category: z.ZodOptional; files: z.ZodArray, string, string>; role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; contentRef: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }>, "many">; styleFiles: z.ZodDefault, string, string>, "many">>; tokenDependencies: z.ZodDefault>; runtimeDependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; peerDependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; internalDependencies: z.ZodDefault>; exports: z.ZodDefault>; path: z.ZodOptional, string, string>>; }, "strip", z.ZodTypeAny, { kind: "type" | "utility" | "style" | "component" | "hook"; name: string; path?: string | undefined; }, { name: string; path?: string | undefined; kind?: "type" | "utility" | "style" | "component" | "hook" | undefined; }>, "many">>; contract: z.ZodOptional; examples: z.ZodDefault>; provenance: z.ZodDefault>; }, "strip", z.ZodTypeAny, { status: string; name: string; componentId: string; publicRef: string; tier: "custom" | "utility" | "composition" | "core"; examples: unknown[]; files: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; styleFiles: string[]; tokenDependencies: string[]; runtimeDependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; peerDependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; internalDependencies: string[]; exports: { kind: "type" | "utility" | "style" | "component" | "hook"; name: string; path?: string | undefined; }[]; provenance: Record; category?: string | undefined; contract?: unknown; }, { name: string; componentId: string; publicRef: string; files: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; status?: string | undefined; category?: string | undefined; contract?: unknown; tier?: "custom" | "utility" | "composition" | "core" | undefined; examples?: unknown[] | undefined; styleFiles?: string[] | undefined; tokenDependencies?: string[] | undefined; runtimeDependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; peerDependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; internalDependencies?: string[] | undefined; exports?: { name: string; path?: string | undefined; kind?: "type" | "utility" | "style" | "component" | "hook" | undefined; }[] | undefined; provenance?: Record | undefined; }>>; dependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; installProfiles: z.ZodDefault; importPath: z.ZodString; stylePath: z.ZodOptional>; includeTests: z.ZodDefault; }, "strip", z.ZodTypeAny, { name: string; importPath: string; targetPath: string; includeTests: boolean; stylePath?: string | undefined; }, { name: string; importPath: string; targetPath: string; stylePath?: string | undefined; includeTests?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { components: Record; category?: string | undefined; contract?: unknown; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; packageFiles: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; entrypoints: { sourcePath: string; specifier: string; }[]; dependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; installProfiles: { name: string; importPath: string; targetPath: string; includeTests: boolean; stylePath?: string | undefined; }[]; fcid?: string | undefined; contractVersionId?: string | undefined; }, { components: Record | undefined; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; fcid?: string | undefined; contractVersionId?: string | undefined; packageFiles?: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[] | undefined; entrypoints?: { sourcePath: string; specifier: string; }[] | undefined; dependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; installProfiles?: { name: string; importPath: string; targetPath: string; stylePath?: string | undefined; includeTests?: boolean | undefined; }[] | undefined; }>; declare const registryManifestSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"fragments.registry.v1">; registryId: z.ZodString; name: z.ZodString; channel: z.ZodString; version: z.ZodString; contractVersionId: z.ZodOptional; fcid: z.ZodOptional; generatedAt: z.ZodString; source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"package">; packageName: z.ZodString; version: z.ZodOptional; rootPath: z.ZodOptional>; commitSha: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; }, { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"github">; repoFullName: z.ZodString; commitSha: z.ZodString; path: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; }, { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"local">; rootPath: z.ZodOptional>; commitSha: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; }, { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"manual">; label: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "manual"; label: string; }, { kind: "manual"; label: string; }>]>; packageFiles: z.ZodDefault, string, string>; role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; contentRef: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }>, "many">>; entrypoints: z.ZodDefault, string, string>; }, "strip", z.ZodTypeAny, { sourcePath: string; specifier: string; }, { sourcePath: string; specifier: string; }>, "many">>; components: z.ZodRecord; tier: z.ZodDefault>; category: z.ZodOptional; files: z.ZodArray, string, string>; role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; contentRef: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }>, "many">; styleFiles: z.ZodDefault, string, string>, "many">>; tokenDependencies: z.ZodDefault>; runtimeDependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; peerDependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; internalDependencies: z.ZodDefault>; exports: z.ZodDefault>; path: z.ZodOptional, string, string>>; }, "strip", z.ZodTypeAny, { kind: "type" | "utility" | "style" | "component" | "hook"; name: string; path?: string | undefined; }, { name: string; path?: string | undefined; kind?: "type" | "utility" | "style" | "component" | "hook" | undefined; }>, "many">>; contract: z.ZodOptional; examples: z.ZodDefault>; provenance: z.ZodDefault>; }, "strip", z.ZodTypeAny, { status: string; name: string; componentId: string; publicRef: string; tier: "custom" | "utility" | "composition" | "core"; examples: unknown[]; files: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; styleFiles: string[]; tokenDependencies: string[]; runtimeDependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; peerDependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; internalDependencies: string[]; exports: { kind: "type" | "utility" | "style" | "component" | "hook"; name: string; path?: string | undefined; }[]; provenance: Record; category?: string | undefined; contract?: unknown; }, { name: string; componentId: string; publicRef: string; files: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; status?: string | undefined; category?: string | undefined; contract?: unknown; tier?: "custom" | "utility" | "composition" | "core" | undefined; examples?: unknown[] | undefined; styleFiles?: string[] | undefined; tokenDependencies?: string[] | undefined; runtimeDependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; peerDependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; internalDependencies?: string[] | undefined; exports?: { name: string; path?: string | undefined; kind?: "type" | "utility" | "style" | "component" | "hook" | undefined; }[] | undefined; provenance?: Record | undefined; }>>; dependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; installProfiles: z.ZodDefault; importPath: z.ZodString; stylePath: z.ZodOptional>; includeTests: z.ZodDefault; }, "strip", z.ZodTypeAny, { name: string; importPath: string; targetPath: string; includeTests: boolean; stylePath?: string | undefined; }, { name: string; importPath: string; targetPath: string; stylePath?: string | undefined; includeTests?: boolean | undefined; }>, "many">>; } & { registryHash: z.ZodString; }, "strip", z.ZodTypeAny, { components: Record; category?: string | undefined; contract?: unknown; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; registryHash: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; packageFiles: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; entrypoints: { sourcePath: string; specifier: string; }[]; dependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; installProfiles: { name: string; importPath: string; targetPath: string; includeTests: boolean; stylePath?: string | undefined; }[]; fcid?: string | undefined; contractVersionId?: string | undefined; }, { components: Record | undefined; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; registryHash: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; fcid?: string | undefined; contractVersionId?: string | undefined; packageFiles?: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[] | undefined; entrypoints?: { sourcePath: string; specifier: string; }[] | undefined; dependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; installProfiles?: { name: string; importPath: string; targetPath: string; stylePath?: string | undefined; includeTests?: boolean | undefined; }[] | undefined; }>; declare const registryArtifactSchema: z.ZodEffects; manifest: z.ZodObject<{ schemaVersion: z.ZodLiteral<"fragments.registry.v1">; registryId: z.ZodString; name: z.ZodString; channel: z.ZodString; version: z.ZodString; contractVersionId: z.ZodOptional; fcid: z.ZodOptional; generatedAt: z.ZodString; source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"package">; packageName: z.ZodString; version: z.ZodOptional; rootPath: z.ZodOptional>; commitSha: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; }, { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"github">; repoFullName: z.ZodString; commitSha: z.ZodString; path: z.ZodOptional>; }, "strip", z.ZodTypeAny, { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; }, { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"local">; rootPath: z.ZodOptional>; commitSha: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; }, { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"manual">; label: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "manual"; label: string; }, { kind: "manual"; label: string; }>]>; packageFiles: z.ZodDefault, string, string>; role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; contentRef: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }>, "many">>; entrypoints: z.ZodDefault, string, string>; }, "strip", z.ZodTypeAny, { sourcePath: string; specifier: string; }, { sourcePath: string; specifier: string; }>, "many">>; components: z.ZodRecord; tier: z.ZodDefault>; category: z.ZodOptional; files: z.ZodArray, string, string>; role: z.ZodEnum<["source", "style", "token", "contract", "test", "story", "example", "asset", "barrel", "metadata"]>; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; contentRef: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }, { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }>, "many">; styleFiles: z.ZodDefault, string, string>, "many">>; tokenDependencies: z.ZodDefault>; runtimeDependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; peerDependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; internalDependencies: z.ZodDefault>; exports: z.ZodDefault>; path: z.ZodOptional, string, string>>; }, "strip", z.ZodTypeAny, { kind: "type" | "utility" | "style" | "component" | "hook"; name: string; path?: string | undefined; }, { name: string; path?: string | undefined; kind?: "type" | "utility" | "style" | "component" | "hook" | undefined; }>, "many">>; contract: z.ZodOptional; examples: z.ZodDefault>; provenance: z.ZodDefault>; }, "strip", z.ZodTypeAny, { status: string; name: string; componentId: string; publicRef: string; tier: "custom" | "utility" | "composition" | "core"; examples: unknown[]; files: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; styleFiles: string[]; tokenDependencies: string[]; runtimeDependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; peerDependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; internalDependencies: string[]; exports: { kind: "type" | "utility" | "style" | "component" | "hook"; name: string; path?: string | undefined; }[]; provenance: Record; category?: string | undefined; contract?: unknown; }, { name: string; componentId: string; publicRef: string; files: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; status?: string | undefined; category?: string | undefined; contract?: unknown; tier?: "custom" | "utility" | "composition" | "core" | undefined; examples?: unknown[] | undefined; styleFiles?: string[] | undefined; tokenDependencies?: string[] | undefined; runtimeDependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; peerDependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; internalDependencies?: string[] | undefined; exports?: { name: string; path?: string | undefined; kind?: "type" | "utility" | "style" | "component" | "hook" | undefined; }[] | undefined; provenance?: Record | undefined; }>>; dependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; installProfiles: z.ZodDefault; importPath: z.ZodString; stylePath: z.ZodOptional>; includeTests: z.ZodDefault; }, "strip", z.ZodTypeAny, { name: string; importPath: string; targetPath: string; includeTests: boolean; stylePath?: string | undefined; }, { name: string; importPath: string; targetPath: string; stylePath?: string | undefined; includeTests?: boolean | undefined; }>, "many">>; } & { registryHash: z.ZodString; }, "strip", z.ZodTypeAny, { components: Record; category?: string | undefined; contract?: unknown; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; registryHash: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; packageFiles: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; entrypoints: { sourcePath: string; specifier: string; }[]; dependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; installProfiles: { name: string; importPath: string; targetPath: string; includeTests: boolean; stylePath?: string | undefined; }[]; fcid?: string | undefined; contractVersionId?: string | undefined; }, { components: Record | undefined; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; registryHash: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; fcid?: string | undefined; contractVersionId?: string | undefined; packageFiles?: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[] | undefined; entrypoints?: { sourcePath: string; specifier: string; }[] | undefined; dependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; installProfiles?: { name: string; importPath: string; targetPath: string; stylePath?: string | undefined; includeTests?: boolean | undefined; }[] | undefined; }>; files: z.ZodRecord, string, string>, z.ZodObject<{ path: z.ZodEffects, string, string>; content: z.ZodString; sha256: z.ZodString; size: z.ZodNumber; contentType: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; size: number; contentType: string; sha256: string; content: string; }, { path: string; size: number; contentType: string; sha256: string; content: string; }>>; }, "strip", z.ZodTypeAny, { schemaVersion: "fragments.registry-artifact.v1"; manifest: { components: Record; category?: string | undefined; contract?: unknown; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; registryHash: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; packageFiles: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; entrypoints: { sourcePath: string; specifier: string; }[]; dependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; installProfiles: { name: string; importPath: string; targetPath: string; includeTests: boolean; stylePath?: string | undefined; }[]; fcid?: string | undefined; contractVersionId?: string | undefined; }; files: Record; }, { schemaVersion: "fragments.registry-artifact.v1"; manifest: { components: Record | undefined; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; registryHash: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; fcid?: string | undefined; contractVersionId?: string | undefined; packageFiles?: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[] | undefined; entrypoints?: { sourcePath: string; specifier: string; }[] | undefined; dependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; installProfiles?: { name: string; importPath: string; targetPath: string; stylePath?: string | undefined; includeTests?: boolean | undefined; }[] | undefined; }; files: Record; }>, { schemaVersion: "fragments.registry-artifact.v1"; manifest: { components: Record; category?: string | undefined; contract?: unknown; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; registryHash: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; packageFiles: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[]; entrypoints: { sourcePath: string; specifier: string; }[]; dependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; installProfiles: { name: string; importPath: string; targetPath: string; includeTests: boolean; stylePath?: string | undefined; }[]; fcid?: string | undefined; contractVersionId?: string | undefined; }; files: Record; }, { schemaVersion: "fragments.registry-artifact.v1"; manifest: { components: Record | undefined; }>; schemaVersion: "fragments.registry.v1"; name: string; registryId: string; registryHash: string; source: { kind: "package"; packageName: string; version?: string | undefined; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "github"; repoFullName: string; commitSha: string; path?: string | undefined; } | { kind: "local"; rootPath?: string | undefined; commitSha?: string | undefined; } | { kind: "manual"; label: string; }; version: string; channel: string; generatedAt: string; fcid?: string | undefined; contractVersionId?: string | undefined; packageFiles?: { path: string; size: number; role: "metadata" | "example" | "token" | "style" | "contract" | "source" | "test" | "story" | "asset" | "barrel"; contentType: string; sha256: string; contentRef: string; }[] | undefined; entrypoints?: { sourcePath: string; specifier: string; }[] | undefined; dependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; installProfiles?: { name: string; importPath: string; targetPath: string; stylePath?: string | undefined; includeTests?: boolean | undefined; }[] | undefined; }; files: Record; }>; declare const registryInstallReceiptFileSchema: z.ZodObject<{ path: z.ZodEffects, string, string>; sha256: z.ZodString; sourcePath: z.ZodEffects, string, string>; componentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; sourcePath: string; sha256: string; componentId?: string | undefined; }, { path: string; sourcePath: string; sha256: string; componentId?: string | undefined; }>; declare const registryInstallReceiptComponentSchema: z.ZodObject<{ componentId: z.ZodString; publicRef: z.ZodString; name: z.ZodString; files: z.ZodArray, string, string>, "many">; }, "strip", z.ZodTypeAny, { name: string; componentId: string; publicRef: string; files: string[]; }, { name: string; componentId: string; publicRef: string; files: string[]; }>; declare const registryInstallReceiptSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"fragments.registry-lock.v1">; registryId: z.ZodString; registryVersion: z.ZodString; registryHash: z.ZodString; fcid: z.ZodOptional; channel: z.ZodOptional; targetPath: z.ZodEffects; importPath: z.ZodString; installedComponents: z.ZodArray, string, string>, "many">; }, "strip", z.ZodTypeAny, { name: string; componentId: string; publicRef: string; files: string[]; }, { name: string; componentId: string; publicRef: string; files: string[]; }>, "many">; files: z.ZodArray, string, string>; sha256: z.ZodString; sourcePath: z.ZodEffects, string, string>; componentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; sourcePath: string; sha256: string; componentId?: string | undefined; }, { path: string; sourcePath: string; sha256: string; componentId?: string | undefined; }>, "many">; dependencies: z.ZodDefault; optional: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }, { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }>, "many">>; installedAt: z.ZodString; }, "strip", z.ZodTypeAny, { schemaVersion: "fragments.registry-lock.v1"; importPath: string; registryId: string; registryHash: string; files: { path: string; sourcePath: string; sha256: string; componentId?: string | undefined; }[]; targetPath: string; dependencies: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[]; registryVersion: string; installedComponents: { name: string; componentId: string; publicRef: string; files: string[]; }[]; installedAt: string; fcid?: string | undefined; channel?: string | undefined; }, { schemaVersion: "fragments.registry-lock.v1"; importPath: string; registryId: string; registryHash: string; files: { path: string; sourcePath: string; sha256: string; componentId?: string | undefined; }[]; targetPath: string; registryVersion: string; installedComponents: { name: string; componentId: string; publicRef: string; files: string[]; }[]; installedAt: string; fcid?: string | undefined; channel?: string | undefined; dependencies?: { type: "runtime" | "peer" | "dev" | "optional"; name: string; versionRange: string; optional?: boolean | undefined; }[] | undefined; }>; type RegistryDependencyType = z.infer; type RegistryDependency = z.infer; type RegistryFileRole = z.infer; type RegistryFile = z.infer; type RegistryFileContent = z.infer; type RegistrySource = z.infer; type RegistryComponentExport = z.infer; type RegistryComponent = z.infer; type RegistryEntrypoint = z.infer; type RegistryInstallProfile = z.infer; type RegistryManifestDraft = z.input; type RegistryManifest = z.infer; type RegistryArtifact = z.infer; type RegistryInstallReceiptFile = z.infer; type RegistryInstallReceiptComponent = z.infer; type RegistryInstallReceipt = z.infer; interface RegistryFileInput { path: string; role: RegistryFileRole; content: string; contentType: string; contentRef?: string; } interface RegistryArtifactInput { manifest: RegistryManifestDraft; files: readonly RegistryFileContent[]; } declare function computeRegistryHash(manifest: RegistryManifestDraft | RegistryManifest): string; declare function finalizeRegistryManifest(input: RegistryManifestDraft): RegistryManifest; declare function hashRegistryFileContent(content: string): string; declare function registryFileSize(content: string): number; declare function buildRegistryFile(input: RegistryFileInput): { metadata: RegistryFile; content: RegistryFileContent; }; declare function buildRegistryArtifact(input: RegistryArtifactInput): RegistryArtifact; declare function assertValidRegistryArtifact(artifact: unknown): RegistryArtifact; declare function registryArtifactDigest(artifact: RegistryArtifact): string; declare function registryManifestCanonicalPreimage(manifest: RegistryManifestDraft | RegistryManifest): string; export { REGISTRY_ARTIFACT_SCHEMA_VERSION, REGISTRY_INSTALL_RECEIPT_SCHEMA_VERSION, REGISTRY_MANIFEST_SCHEMA_VERSION, type RegistryArtifact, type RegistryArtifactInput, type RegistryComponent, type RegistryComponentExport, type RegistryDependency, type RegistryDependencyType, type RegistryEntrypoint, type RegistryFile, type RegistryFileContent, type RegistryFileInput, type RegistryFileRole, type RegistryInstallProfile, type RegistryInstallReceipt, type RegistryInstallReceiptComponent, type RegistryInstallReceiptFile, type RegistryManifest, type RegistryManifestDraft, type RegistrySource, assertValidRegistryArtifact, buildRegistryArtifact, buildRegistryFile, computeRegistryHash, finalizeRegistryManifest, hashRegistryFileContent, registryArtifactDigest, registryArtifactSchema, registryComponentExportSchema, registryComponentSchema, registryDependencySchema, registryDependencyTypeSchema, registryEntrypointSchema, registryFileContentSchema, registryFileRoleSchema, registryFileSchema, registryFileSize, registryInstallProfileSchema, registryInstallReceiptComponentSchema, registryInstallReceiptFileSchema, registryInstallReceiptSchema, registryManifestCanonicalPreimage, registryManifestDraftSchema, registryManifestSchema, registrySourceSchema };