import type { ContentTypeProps } from 'contentful-management'; import type { SpaceConfig } from '../config/types.js'; import type { SafeEnvironment } from './client.js'; export declare function getContentTypeForSpace(env: SafeEnvironment, spaceId: string, environment: string, ctId: string): Promise; /** Clears in-process content-type cache (for tests). */ export declare function clearEntryFieldsContentTypeCacheForTests(): void; /** Top-level keys on {@link EntryFieldsSpec} that are not Contentful field IDs. */ export declare const ENTRY_FIELDS_SPEC_META_KEYS: Set; /** Copies extra field values from a flat spec object (e.g. batch JSON items) into overrides. */ export declare function extraFieldsFromSpecSource(source: Record): Record; export interface EntryFieldsSpec { slug?: string; name?: string; cmsLabel?: string; /** Raw Contentful field values keyed by field ID. */ fields?: Record; /** CLI flag overrides — win over `fields`. */ overrides?: Record; tagTypeId?: string; tagTypeSlug?: string; tagTypeName?: string; templateId?: string; indexPageTemplateId?: string; articleTemplateId?: string; searchTemplateId?: string; menuId?: string; footerId?: string; featuredImage?: string; featuredImageId?: string; featuredImageAssetFilename?: string; download?: string; downloadId?: string; downloadAssetFilename?: string; icon?: string; iconId?: string; iconAssetFilename?: string; articleTypeId?: string; articleTypeSlug?: string; articleTypeName?: string; topContentIds?: string[]; indexPageTopContentIds?: string[]; articlePageTopContentIds?: string[]; searchTopContentIds?: string[]; structuredDataIds?: string[]; indexPageStructuredDataIds?: string[]; visualsIds?: string[]; } export type EntryFieldsContentTypeId = 'tag' | 'tagType' | 'articleType' | 'page' | 'article' | 'person'; export interface BuildEntryFieldsOptions { contentTypeId: EntryFieldsContentTypeId; spec: EntryFieldsSpec; locale: string; spaceId: string; environment: string; /** Required for *AssetFilename shorthands (index lookup). */ space?: SpaceConfig; strict?: boolean; } export interface BuildEntryFieldsResult { fields: Record>; warnings: string[]; } /** * Maps a `create from-json` root object into {@link EntryFieldsSpec} for {@link buildEntryFieldsFromSpec}. */ export declare function entryFieldsSpecFromCreateFromJson(raw: Record, normalizedSlug: string): { spec: EntryFieldsSpec; aliasWarnings: string[]; }; /** * Builds locale-keyed CMA fields for taxonomy entry creation from JSON + CLI spec. */ export declare function buildEntryFieldsFromSpec(env: SafeEnvironment, opts: BuildEntryFieldsOptions): Promise; //# sourceMappingURL=entry-fields.d.ts.map