import { z } from "zod"; //#region src/utils/registry/schema.d.ts type RegistryItemType = z.infer; declare const registryItemTypeSchema: z.ZodEnum<{ "registry:lib": "registry:lib"; "registry:block": "registry:block"; "registry:component": "registry:component"; "registry:ui": "registry:ui"; "registry:hook": "registry:hook"; "registry:page": "registry:page"; "registry:file": "registry:file"; "registry:theme": "registry:theme"; "registry:style": "registry:style"; "registry:item": "registry:item"; "registry:base": "registry:base"; "registry:font": "registry:font"; "registry:example": "registry:example"; "registry:internal": "registry:internal"; }>; type RegistryItemFileType = z.infer; declare const registryItemFileTypeSchema: z.ZodEnum<{ "registry:lib": "registry:lib"; "registry:block": "registry:block"; "registry:component": "registry:component"; "registry:ui": "registry:ui"; "registry:hook": "registry:hook"; "registry:page": "registry:page"; "registry:file": "registry:file"; "registry:theme": "registry:theme"; "registry:style": "registry:style"; "registry:item": "registry:item"; "registry:base": "registry:base"; "registry:font": "registry:font"; }>; type RegistryItemFile = z.infer; declare const registryItemFileSchema: z.ZodObject<{ content: z.ZodString; type: z.ZodEnum<{ "registry:lib": "registry:lib"; "registry:block": "registry:block"; "registry:component": "registry:component"; "registry:ui": "registry:ui"; "registry:hook": "registry:hook"; "registry:page": "registry:page"; "registry:file": "registry:file"; "registry:theme": "registry:theme"; "registry:style": "registry:style"; "registry:item": "registry:item"; "registry:base": "registry:base"; "registry:font": "registry:font"; }>; target: z.ZodString; }, z.core.$strip>; type RegistryIndexItem = z.infer; /** Schema for registry items defined in the index */ declare const registryIndexItemSchema: z.ZodObject<{ name: z.ZodString; title: z.ZodOptional; type: z.ZodEnum<{ "registry:lib": "registry:lib"; "registry:block": "registry:block"; "registry:component": "registry:component"; "registry:ui": "registry:ui"; "registry:hook": "registry:hook"; "registry:page": "registry:page"; "registry:file": "registry:file"; "registry:theme": "registry:theme"; "registry:style": "registry:style"; "registry:item": "registry:item"; "registry:base": "registry:base"; "registry:font": "registry:font"; "registry:example": "registry:example"; "registry:internal": "registry:internal"; }>; author: z.ZodOptional; description: z.ZodOptional; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; registryDependencies: z.ZodOptional>; meta: z.ZodOptional>; relativeUrl: z.ZodString; }, z.core.$strip>; type RegistryIndex = z.infer; /** Schema for the registry's index (e.g. `https://example.com/registry/index.json`) */ declare const registryIndexSchema: z.ZodArray; type: z.ZodEnum<{ "registry:lib": "registry:lib"; "registry:block": "registry:block"; "registry:component": "registry:component"; "registry:ui": "registry:ui"; "registry:hook": "registry:hook"; "registry:page": "registry:page"; "registry:file": "registry:file"; "registry:theme": "registry:theme"; "registry:style": "registry:style"; "registry:item": "registry:item"; "registry:base": "registry:base"; "registry:font": "registry:font"; "registry:example": "registry:example"; "registry:internal": "registry:internal"; }>; author: z.ZodOptional; description: z.ZodOptional; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; registryDependencies: z.ZodOptional>; meta: z.ZodOptional>; relativeUrl: z.ZodString; }, z.core.$strip>>; /** Schema for base color endpoints (e.g. `https://example.com/registry/colors/slate.json`) */ declare const registryBaseColorSchema: z.ZodObject<{ cssVars: z.ZodObject<{ light: z.ZodRecord; dark: z.ZodRecord; }, z.core.$strip>; }, z.core.$strip>; type CssVars = z.infer; declare const registryItemCssVarsSchema: z.ZodObject<{ theme: z.ZodOptional>; light: z.ZodOptional>; dark: z.ZodOptional>; }, z.core.$strip>; type CssSchema = { [x: string]: string | CssSchema; }; declare const registryItemCommonSchema: z.ZodObject<{ docs: z.ZodOptional; categories: z.ZodOptional>; css: z.ZodOptional>>; cssVars: z.ZodOptional>; light: z.ZodOptional>; dark: z.ZodOptional>; }, z.core.$strip>>; files: z.ZodOptional; target: z.ZodString; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodEnum<{ "registry:lib": "registry:lib"; "registry:block": "registry:block"; "registry:component": "registry:component"; "registry:ui": "registry:ui"; "registry:hook": "registry:hook"; "registry:page": "registry:page"; "registry:file": "registry:file"; "registry:theme": "registry:theme"; "registry:style": "registry:style"; "registry:item": "registry:item"; "registry:base": "registry:base"; "registry:font": "registry:font"; "registry:example": "registry:example"; "registry:internal": "registry:internal"; }>; author: z.ZodOptional; description: z.ZodOptional; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; registryDependencies: z.ZodOptional>; meta: z.ZodOptional>; $schema: z.ZodOptional; }, z.core.$strip>; declare const registryItemFontSchema: z.ZodObject<{ family: z.ZodString; provider: z.ZodLiteral<"google">; import: z.ZodString; variable: z.ZodString; weight: z.ZodOptional>; subsets: z.ZodOptional>; selector: z.ZodOptional; dependency: z.ZodOptional; }, z.core.$strip>; type RegistryFont = z.infer; type RegistryItem = z.infer; /** Schema for registry item endpoints (e.g. `https://example.com/registry/item.json`) */ declare const registryItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ docs: z.ZodOptional; categories: z.ZodOptional>; css: z.ZodOptional>>; cssVars: z.ZodOptional>; light: z.ZodOptional>; dark: z.ZodOptional>; }, z.core.$strip>>; files: z.ZodOptional; target: z.ZodString; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; author: z.ZodOptional; description: z.ZodOptional; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; registryDependencies: z.ZodOptional>; meta: z.ZodOptional>; $schema: z.ZodOptional; type: z.ZodLiteral<"registry:base">; config: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ docs: z.ZodOptional; categories: z.ZodOptional>; css: z.ZodOptional>>; cssVars: z.ZodOptional>; light: z.ZodOptional>; dark: z.ZodOptional>; }, z.core.$strip>>; files: z.ZodOptional; target: z.ZodString; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; author: z.ZodOptional; description: z.ZodOptional; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; registryDependencies: z.ZodOptional>; meta: z.ZodOptional>; $schema: z.ZodOptional; type: z.ZodLiteral<"registry:font">; font: z.ZodObject<{ family: z.ZodString; provider: z.ZodLiteral<"google">; import: z.ZodString; variable: z.ZodString; weight: z.ZodOptional>; subsets: z.ZodOptional>; selector: z.ZodOptional; dependency: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ docs: z.ZodOptional; categories: z.ZodOptional>; css: z.ZodOptional>>; cssVars: z.ZodOptional>; light: z.ZodOptional>; dark: z.ZodOptional>; }, z.core.$strip>>; files: z.ZodOptional; target: z.ZodString; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; author: z.ZodOptional; description: z.ZodOptional; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; registryDependencies: z.ZodOptional>; meta: z.ZodOptional>; $schema: z.ZodOptional; type: z.ZodEnum<{ "registry:lib": "registry:lib"; "registry:block": "registry:block"; "registry:component": "registry:component"; "registry:ui": "registry:ui"; "registry:hook": "registry:hook"; "registry:page": "registry:page"; "registry:file": "registry:file"; "registry:theme": "registry:theme"; "registry:style": "registry:style"; "registry:item": "registry:item"; "registry:example": "registry:example"; "registry:internal": "registry:internal"; }>; }, z.core.$strip>], "type">; type Registry = z.infer; /** Schema for `registry.json` */ declare const registrySchema: z.ZodObject<{ $schema: z.ZodOptional; name: z.ZodString; homepage: z.ZodString; overrideDependencies: z.ZodOptional>; aliases: z.ZodOptional; ui: z.ZodOptional; components: z.ZodOptional; utils: z.ZodOptional; hooks: z.ZodOptional; }, z.core.$strip>>; items: z.ZodArray; type: z.ZodEnum<{ "registry:lib": "registry:lib"; "registry:block": "registry:block"; "registry:component": "registry:component"; "registry:ui": "registry:ui"; "registry:hook": "registry:hook"; "registry:page": "registry:page"; "registry:file": "registry:file"; "registry:theme": "registry:theme"; "registry:style": "registry:style"; "registry:item": "registry:item"; "registry:base": "registry:base"; "registry:font": "registry:font"; "registry:example": "registry:example"; "registry:internal": "registry:internal"; }>; author: z.ZodOptional; description: z.ZodOptional; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; meta: z.ZodOptional>; files: z.ZodArray; target: z.ZodOptional; path: z.ZodString; type: z.ZodEnum<{ "registry:lib": "registry:lib"; "registry:block": "registry:block"; "registry:component": "registry:component"; "registry:ui": "registry:ui"; "registry:hook": "registry:hook"; "registry:page": "registry:page"; "registry:file": "registry:file"; "registry:theme": "registry:theme"; "registry:style": "registry:style"; "registry:item": "registry:item"; "registry:base": "registry:base"; "registry:font": "registry:font"; }>; }, z.core.$strip>>; registryDependencies: z.ZodArray; cssVars: z.ZodOptional>; light: z.ZodOptional>; dark: z.ZodOptional>; }, z.core.$strip>>; css: z.ZodOptional>>; font: z.ZodOptional; import: z.ZodString; variable: z.ZodString; weight: z.ZodOptional>; subsets: z.ZodOptional>; selector: z.ZodOptional; dependency: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; /** Schema for a project's `components.json` config file. */ declare const componentsJsonSchema: z.ZodObject<{ $schema: z.ZodOptional; style: z.ZodOptional; tailwind: z.ZodObject<{ css: z.ZodString; baseColor: z.ZodString; config: z.ZodOptional; }, z.core.$strip>; aliases: z.ZodObject<{ components: z.ZodString; utils: z.ZodString; ui: z.ZodOptional; hooks: z.ZodOptional; lib: z.ZodOptional; }, z.core.$strip>; registry: z.ZodOptional; typescript: z.ZodOptional]>>; iconLibrary: z.ZodOptional>; menuColor: z.ZodOptional>; menuAccent: z.ZodOptional>; }, z.core.$strip>; /** * A highly naive implementation of deep partialification. Unfortunately the latest version of zod doesn't support this at this time. If there ever comes a time where it does let's replace this method ASAP. * * @see https://github.com/colinhacks/zod/issues/2854 * * @param schema * @returns */ declare function naiveDeepPartialify(schema: z.ZodObject): z.ZodObject; //#endregion export { registryItemFileSchema as _, RegistryIndex as a, registrySchema as b, RegistryItemFile as c, componentsJsonSchema as d, naiveDeepPartialify as f, registryItemCommonSchema as g, registryIndexSchema as h, RegistryFont as i, RegistryItemFileType as l, registryIndexItemSchema as m, CssVars as n, RegistryIndexItem as o, registryBaseColorSchema as p, Registry as r, RegistryItem as s, CssSchema as t, RegistryItemType as u, registryItemFontSchema as v, registryItemSchema as y };