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; /** * Removes the namespace prefix from a content type key (e.g. `graph:Article` becomes `Article`). * Used for GraphQL type names, which can't contain a colon. * @param key - The content type key, possibly namespaced. * @returns Key without the leading `namespace:` prefix. */ export declare const stripSourcePrefix: (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[]; /** Spread into the `item` of a content reference to resolve a DAM asset. */ export declare const DAM_ITEM_SPREADS: string[]; /** * Fragments included in every query that walks a composition. * * @param formsEnabled Use the deeper composition nesting that Forms requires. * @param includeExperienceFragment Emit `_IExperience` too. A section reads its * `composition` field directly rather than spreading that fragment, and * GraphQL rejects a document containing a fragment nothing uses. * @param compositionDepth Nesting depth for ordinary compositions. Ignored when * `formsEnabled`, which always needs the deeper Forms depth. */ export declare const getFixedFragments: (formsEnabled?: boolean, includeExperienceFragment?: boolean, compositionDepth?: number) => string[]; export declare function getBaseTypeFragments(baseType: string, contentTypeName?: string, taxonomyEnabled?: boolean): BaseTypeFragments;