import { ExperienceComponentNode, ExperienceNode } from '../infer.js'; import { AnyContentType, PermittedTypes, MediaStringTypes } from '../model/contentTypes.js'; export type BaseTypeFragments = { fields: string[]; extraFragments: string[]; }; /** * Check if the keyName is a built‑in CMS baseTypes * @param key keyName of the content type * @returns boolean */ export declare const isBaseType: (key: string) => boolean; /** * Check if the keyName is a Media type * @param key keyName of the content type * @returns boolean */ export declare const isBaseMediaType: (key: string) => key is MediaStringTypes; /** * Check if the node is a component node * @param node - The experience node to check * @returns True if the node is a component node */ export declare const isComponentNode: (node: ExperienceNode) => node is ExperienceComponentNode; /** * Get the key or name of ContentType or Media type * @param type ContentType or Media type property * @returns Name of the ContentType or Media type */ export declare const getKeyName: (type: PermittedTypes | AnyContentType) => string; /** * Check if the keyName is a built-in CMS baseType. * @param key - The keyName of the content type. * @returns True if the key is a built-in CMS baseType format, otherwise return the original key. */ export declare const toBaseTypeFragmentKey: (key: string) => string; export declare const CONTENT_URL_FRAGMENT = "fragment ContentUrl on ContentUrl { type default hierarchical internal graph base }"; export declare const DAM_ASSET_FRAGMENTS: string[]; export declare const FIXED_FRAGMENTS: string[]; export declare function getBaseTypeFragments(baseType: string, contentTypeName?: string): BaseTypeFragments;