import { AnyContentType, Contract } from './contentTypes.js'; export type RegistryEntry = AnyContentType | Contract; /** Initializes the content type registry */ export declare function init(registry: RegistryEntry[]): 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;