import type { z } from "zod"; import type { ExampleComponentSchema, ExampleDetailSchema, RegistryEntrySchema, RegistryItemDetailSchema } from "../registry/schemas.js"; export type RegistryEntry = z.infer; export type RegistryExample = z.infer; export type RegistryExampleDetail = z.infer; export type RegistryItemDetail = z.infer; export type RegistryCatalogItem = { name: string; title: string; description?: string; kind: string; registryType: string; }; export type RegistryCatalogItemDetail = RegistryCatalogItem & { install: { command: string; registryUrl: string; }; dependencies: string[]; registryDependencies: string[]; relatedItems?: RegistryCatalogItem[]; source?: string; examples?: Array<{ name: string; title: string; description?: string; content: string; }>; }; export type RegistrySnapshot = { entries: RegistryEntry[]; examples: RegistryExample[]; exampleNamesByComponent: Map; };