import type { UID, Struct } from '@strapi/types'; export declare const isCTBOwnedApplicationContentType: (uid: UID.ContentType) => boolean; export declare const assertCTBOwnedApplicationContentType: (uid: UID.ContentType) => void; export declare const isContentTypeVisible: (model: Struct.ContentTypeSchema) => boolean; export declare const getRestrictRelationsTo: (contentType: Struct.ContentTypeSchema) => string[] | null; /** * Format a contentType info to be used by the front-end */ export declare const formatContentType: (contentType: any) => { uid: any; plugin: any; apiID: any; schema: { displayName: any; singularName: any; pluralName: any; description: any; pluginOptions: any; kind: any; collectionName: any; attributes: any; visible: boolean; restrictRelationsTo: string[] | null; draftAndPublish: boolean; } | { displayName: any; singularName: any; pluralName: any; description: any; pluginOptions: any; kind: any; collectionName: any; attributes: any; visible: boolean; restrictRelationsTo: string[] | null; draftAndPublish: boolean; populateCreatorFields?: boolean; }; }; export declare const createContentTypes: (contentTypes: any[]) => Promise; type CreateContentTypeOptions = { defaultBuilder?: any; generatedApiNames?: string[]; deferEvent?: boolean; }; /** * The HTTP validators require a non-empty `displayName`; direct service callers must provide * one too, otherwise the schema builder writes a schema the core validator rejects at the * next load and the app no longer boots. Run it before anything is written. */ export declare const assertValidDisplayName: (displayName: unknown) => void; /** * Creates a content type and handle the nested components sent with it */ export declare const createContentType: ({ contentType, components }: any, options?: CreateContentTypeOptions) => Promise; /** * Generate an API skeleton */ export declare const generateAPI: ({ singularName, kind, pluralName, displayName, }: any) => any; /** * A single type holds one document, so refuse the switch while several exist. */ export declare const assertCanConvertToSingleType: (uid: UID.ContentType) => Promise; /** * Edits a contentType and handle the nested contentTypes sent with it */ export declare const editContentType: (uid: UID.ContentType, { contentType, components }: any) => Promise; export declare const deleteContentTypes: (uids: UID.ContentType[]) => Promise; /** * Deletes a content type and the api files related to it */ export declare const deleteContentType: (uid: UID.ContentType, defaultBuilder?: any) => Promise; export {}; //# sourceMappingURL=content-types.d.ts.map