import type { Core, Modules } from '@strapi/types'; type ContentStructureFile = Modules.ContentStructure.ContentStructureFile; type ContentTypeKind = 'collectionType' | 'singleType'; /** * A mirror of the subset of the core `content-structure` service (strapi.get('content-structure')) * that this service consumes. */ export interface CoreContentStructureService { getCleanedFile(): Promise; write(structure: ContentStructureFile): Promise; } /** * This service handles the CTB orchestration of folder-group WRITES. It handles: * - Context-aware validation that requires the content-type registry * - Context-aware pruning of references invalidated by CTB transaction. * - Persistence to filesystem via the core content-structure service. * It assumes that non-context-aware validation has already been performed. */ export interface ContentTypeBuilderContentStructureService { /** * Validates all references to content types in the provided content structure. * Throws an ApplicationError naming every offending uid + rule. */ validateContentTypeUidReferences(structure: unknown, contentTypeUids: Map): void; validateFromUpdate(input: { incomingStructure?: unknown; upsertedUids: Map; deletedUids: Set; }): void; commitFromUpdate(input: { incomingStructure?: unknown; deletedUids: Set; }): Promise; } export declare function createContentStructureService(strapi: Core.Strapi): ContentTypeBuilderContentStructureService; export {}; //# sourceMappingURL=content-structure.d.ts.map