import { t as Config } from "../get-config-DW4c9y68.js"; import { S as resolveRegistryItems, a as getRegistry, h as getRegistryItems, i as getRegistriesIndex } from "../api-FMEhYJfG.js"; //#region src/registry/address.d.ts type ResolvedItemAddress = { scheme: "shadcn"; item: string; } | { scheme: "namespace"; namespace: string; item: string; } | { scheme: "url"; url: string; } | { scheme: "file"; path: string; } | { scheme: "github"; owner: string; repo: string; item: string; ref?: string; }; interface ResolvedGitHubRegistrySource { owner: string; repo: string; ref?: string; } type ResolvedGitHubItemAddress = Extract; declare function resolveItemAddress(address: string): { scheme: "github"; owner: string; repo: string; item: string; ref: string | undefined; } | { scheme: "url"; url: string; path?: undefined; namespace?: undefined; item?: undefined; } | { scheme: "file"; path: string; url?: undefined; namespace?: undefined; item?: undefined; } | { scheme: "namespace"; namespace: string; item: string; url?: undefined; path?: undefined; } | { scheme: "shadcn"; item: string; url?: undefined; path?: undefined; namespace?: undefined; }; declare function resolveGitHubRegistrySource(source: string): { owner: string; repo: string; ref: string | undefined; } | null; //#endregion //#region src/registry/errors.d.ts declare const RegistryErrorCode: { readonly NETWORK_ERROR: "NETWORK_ERROR"; readonly NOT_FOUND: "NOT_FOUND"; readonly UNAUTHORIZED: "UNAUTHORIZED"; readonly FORBIDDEN: "FORBIDDEN"; readonly FETCH_ERROR: "FETCH_ERROR"; readonly NOT_CONFIGURED: "NOT_CONFIGURED"; readonly INVALID_CONFIG: "INVALID_CONFIG"; readonly MISSING_ENV_VARS: "MISSING_ENV_VARS"; readonly LOCAL_FILE_ERROR: "LOCAL_FILE_ERROR"; readonly SOURCE_FILE_ERROR: "SOURCE_FILE_ERROR"; readonly PARSE_ERROR: "PARSE_ERROR"; readonly VALIDATION_ERROR: "VALIDATION_ERROR"; readonly UNKNOWN_ERROR: "UNKNOWN_ERROR"; }; type RegistryErrorCode = (typeof RegistryErrorCode)[keyof typeof RegistryErrorCode]; declare class RegistryError extends Error { readonly code: RegistryErrorCode; readonly statusCode?: number; readonly context?: Record; readonly suggestion?: string; readonly timestamp: Date; readonly cause?: unknown; constructor(message: string, options?: { code?: RegistryErrorCode; statusCode?: number; cause?: unknown; context?: Record; suggestion?: string; }); toJSON(): { name: string; message: string; code: RegistryErrorCode; statusCode: number | undefined; context: Record | undefined; suggestion: string | undefined; timestamp: Date; stack: string | undefined; }; } declare class RegistryNotFoundError extends RegistryError { readonly url: string; constructor(url: string, cause?: unknown); } declare class RegistryUnauthorizedError extends RegistryError { readonly url: string; constructor(url: string, cause?: unknown); } declare class RegistryForbiddenError extends RegistryError { readonly url: string; constructor(url: string, cause?: unknown); } declare class RegistryFetchError extends RegistryError { readonly url: string; readonly responseBody?: string | undefined; constructor(url: string, statusCode?: number, responseBody?: string | undefined, cause?: unknown); } declare class RegistryNotConfiguredError extends RegistryError { readonly registryName: string | null; constructor(registryName: string | null); } declare class RegistryLocalFileError extends RegistryError { readonly filePath: string; constructor(filePath: string, cause?: unknown); } declare class RegistryItemNotFoundError extends RegistryError { readonly itemName: string; constructor(itemName: string, options?: { source?: string; context?: Record; suggestion?: string; }); } declare class RegistryValidationError extends RegistryError { constructor(message: string, options?: { registryFile?: string; cause?: unknown; context?: Record; suggestion?: string; }); } declare class RegistrySourceFileError extends RegistryError { readonly filePath: string; constructor(filePath: string, cause?: unknown, options?: { message?: string; context?: Record; suggestion?: string; }); } declare class RegistryParseError extends RegistryError { readonly item: string; readonly parseError: unknown; constructor(item: string, parseError: unknown); } declare class RegistryMissingEnvironmentVariablesError extends RegistryError { readonly registryName: string; readonly missingVars: string[]; constructor(registryName: string, missingVars: string[]); } declare class RegistryInvalidNamespaceError extends RegistryError { readonly name: string; constructor(name: string); } declare class RegistriesIndexParseError extends RegistryError { readonly parseError: unknown; constructor(parseError: unknown); } //#endregion //#region src/registry/github.d.ts interface GitHubSourceOptions { useCache?: boolean; sourceCache?: Map>; } declare function clearGitHubSourceCache(): void; declare function fetchGitHubRegistryItem(address: ResolvedGitHubItemAddress, options?: GitHubSourceOptions): Promise<{ name: string; type: "registry:base"; config?: { style?: string | undefined; iconLibrary?: string | undefined; font?: string | undefined; fontHeading?: string | undefined; menuAccent?: "subtle" | "bold" | undefined; menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined; $schema?: string | undefined; typescript?: boolean | undefined; tailwind?: { config?: string | undefined; baseColor?: string | undefined; css?: string | undefined; cssVariables?: boolean | undefined; prefix?: string | undefined; } | undefined; rtl?: boolean | undefined; pointer?: boolean | undefined; aliases?: { components?: string | undefined; utils?: string | undefined; ui?: string | undefined; lib?: string | undefined; hooks?: string | undefined; composables?: string | undefined; } | undefined; registries?: Record | undefined; headers?: Record | undefined; }> | undefined; } | undefined; description?: string | undefined; title?: string | undefined; $schema?: string | undefined; tailwind?: { config?: { theme?: Record | undefined; content?: string[] | undefined; plugins?: string[] | undefined; } | undefined; } | undefined; css?: Record | undefined; extends?: string | undefined; author?: string | undefined; dependencies?: string[] | undefined; devDependencies?: string[] | undefined; registryDependencies?: string[] | undefined; files?: ({ path: string; type: "registry:page" | "registry:file"; target: string; content?: string | undefined; } | { path: string; type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal"; content?: string | undefined; target?: string | undefined; })[] | undefined; cssVars?: { theme?: Record | undefined; light?: Record | undefined; dark?: Record | undefined; } | undefined; envVars?: Record | undefined; meta?: Record | undefined; docs?: string | undefined; categories?: string[] | undefined; } | { name: string; font: { family: string; provider: "google"; import: string; variable: string; weight?: string[] | undefined; subsets?: string[] | undefined; }; type: "registry:font"; description?: string | undefined; title?: string | undefined; $schema?: string | undefined; tailwind?: { config?: { theme?: Record | undefined; content?: string[] | undefined; plugins?: string[] | undefined; } | undefined; } | undefined; css?: Record | undefined; extends?: string | undefined; author?: string | undefined; dependencies?: string[] | undefined; devDependencies?: string[] | undefined; registryDependencies?: string[] | undefined; files?: ({ path: string; type: "registry:page" | "registry:file"; target: string; content?: string | undefined; } | { path: string; type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal"; content?: string | undefined; target?: string | undefined; })[] | undefined; cssVars?: { theme?: Record | undefined; light?: Record | undefined; dark?: Record | undefined; } | undefined; envVars?: Record | undefined; meta?: Record | undefined; docs?: string | undefined; categories?: string[] | undefined; } | { name: string; type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal"; description?: string | undefined; title?: string | undefined; $schema?: string | undefined; tailwind?: { config?: { theme?: Record | undefined; content?: string[] | undefined; plugins?: string[] | undefined; } | undefined; } | undefined; css?: Record | undefined; extends?: string | undefined; author?: string | undefined; dependencies?: string[] | undefined; devDependencies?: string[] | undefined; registryDependencies?: string[] | undefined; files?: ({ path: string; type: "registry:page" | "registry:file"; target: string; content?: string | undefined; } | { path: string; type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal"; content?: string | undefined; target?: string | undefined; })[] | undefined; cssVars?: { theme?: Record | undefined; light?: Record | undefined; dark?: Record | undefined; } | undefined; envVars?: Record | undefined; meta?: Record | undefined; docs?: string | undefined; categories?: string[] | undefined; }>; declare function fetchGitHubRegistryCatalog(source: ResolvedGitHubRegistrySource, options?: GitHubSourceOptions): Promise<{ items: ({ files: ({ path: string; type: "registry:page" | "registry:file"; target: string; } | { path: string; type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal"; target?: string | undefined; })[] | undefined; name: string; type: "registry:base"; config?: { style?: string | undefined; iconLibrary?: string | undefined; font?: string | undefined; fontHeading?: string | undefined; menuAccent?: "subtle" | "bold" | undefined; menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined; $schema?: string | undefined; typescript?: boolean | undefined; tailwind?: { config?: string | undefined; baseColor?: string | undefined; css?: string | undefined; cssVariables?: boolean | undefined; prefix?: string | undefined; } | undefined; rtl?: boolean | undefined; pointer?: boolean | undefined; aliases?: { components?: string | undefined; utils?: string | undefined; ui?: string | undefined; lib?: string | undefined; hooks?: string | undefined; composables?: string | undefined; } | undefined; registries?: Record | undefined; headers?: Record | undefined; }> | undefined; } | undefined; description?: string | undefined; title?: string | undefined; $schema?: string | undefined; tailwind?: { config?: { theme?: Record | undefined; content?: string[] | undefined; plugins?: string[] | undefined; } | undefined; } | undefined; css?: Record | undefined; extends?: string | undefined; author?: string | undefined; dependencies?: string[] | undefined; devDependencies?: string[] | undefined; registryDependencies?: string[] | undefined; cssVars?: { theme?: Record | undefined; light?: Record | undefined; dark?: Record | undefined; } | undefined; envVars?: Record | undefined; meta?: Record | undefined; docs?: string | undefined; categories?: string[] | undefined; } | { files: ({ path: string; type: "registry:page" | "registry:file"; target: string; } | { path: string; type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal"; target?: string | undefined; })[] | undefined; name: string; font: { family: string; provider: "google"; import: string; variable: string; weight?: string[] | undefined; subsets?: string[] | undefined; }; type: "registry:font"; description?: string | undefined; title?: string | undefined; $schema?: string | undefined; tailwind?: { config?: { theme?: Record | undefined; content?: string[] | undefined; plugins?: string[] | undefined; } | undefined; } | undefined; css?: Record | undefined; extends?: string | undefined; author?: string | undefined; dependencies?: string[] | undefined; devDependencies?: string[] | undefined; registryDependencies?: string[] | undefined; cssVars?: { theme?: Record | undefined; light?: Record | undefined; dark?: Record | undefined; } | undefined; envVars?: Record | undefined; meta?: Record | undefined; docs?: string | undefined; categories?: string[] | undefined; } | { files: ({ path: string; type: "registry:page" | "registry:file"; target: string; } | { path: string; type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal"; target?: string | undefined; })[] | undefined; name: string; type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal"; description?: string | undefined; title?: string | undefined; $schema?: string | undefined; tailwind?: { config?: { theme?: Record | undefined; content?: string[] | undefined; plugins?: string[] | undefined; } | undefined; } | undefined; css?: Record | undefined; extends?: string | undefined; author?: string | undefined; dependencies?: string[] | undefined; devDependencies?: string[] | undefined; registryDependencies?: string[] | undefined; cssVars?: { theme?: Record | undefined; light?: Record | undefined; dark?: Record | undefined; } | undefined; envVars?: Record | undefined; meta?: Record | undefined; docs?: string | undefined; categories?: string[] | undefined; })[]; name: string; homepage: string; }>; //#endregion //#region src/registry/search.d.ts declare function searchRegistries(registries: string[], options?: { query?: string; limit?: number; offset?: number; config?: Partial; useCache?: boolean; }): Promise<{ items: { name: string; registry: string; addCommandArgument: string; description?: string | undefined; type?: string | undefined; }[]; pagination: { total: number; offset: number; limit: number; hasMore: boolean; }; }>; //#endregion export { RegistriesIndexParseError, RegistryError, RegistryFetchError, RegistryForbiddenError, RegistryInvalidNamespaceError, RegistryItemNotFoundError, RegistryLocalFileError, RegistryMissingEnvironmentVariablesError, RegistryNotConfiguredError, RegistryNotFoundError, RegistryParseError, RegistrySourceFileError, RegistryUnauthorizedError, RegistryValidationError, type ResolvedGitHubItemAddress, type ResolvedGitHubRegistrySource, type ResolvedItemAddress, clearGitHubSourceCache, fetchGitHubRegistryCatalog, fetchGitHubRegistryItem, getRegistriesIndex, getRegistry, getRegistryItems, resolveGitHubRegistrySource, resolveItemAddress, resolveRegistryItems, searchRegistries }; //# sourceMappingURL=index.d.ts.map