import { AnyContentType, AnyContract } from './contentTypes.js'; export type RegistryEntry = AnyContentType | AnyContract; /** Returns a value that changes whenever the registry contents change. */ export declare function getRegistryVersion(): number; /** Initializes the content type registry */ export declare function init(registry: RegistryEntry[]): void; /** * Adds content types to the registry without replacing existing entries * (internal use only). * * Types already present are skipped: this runs on every hot reload, and * duplicates would otherwise pile up and be emitted into generated queries. */ export declare const addToContentTypeRegistry: (types: AnyContentType[]) => void; /** Get the Component from a content type name */ export declare function getContentType(name: string): RegistryEntry | undefined; /** Get all the content types */ export declare function getAllContentTypes(): RegistryEntry[]; /** Get the Component from a base type */ export declare function getContentTypeByBaseType(name: string): AnyContentType[]; /** * Check if a content type is registered in the registry. * Useful for validating content types before attempting to fetch or render them. * * @param key - The content type key to check * @returns true if the content type is registered, false otherwise * * @example * ```typescript * if (isContentTypeRegistered('BlogPage')) { * const content = await client.getContentByPath('/blog/post-1'); * } * ``` */ export declare function isContentTypeRegistered(key: string): boolean;