import { $Fetch } from 'ofetch'; import { ContentTypeListQuery, ContentTypeListResponse, ContentTypeResponse } from './content-types.type'; export interface IContentTypesServiceOptions { /** The CMS `$Fetch` instance (one of `sdk.apis`). */ api: $Fetch; /** Lazy flag — when true, the service returns fake data. */ mock: () => boolean; } export interface IContentTypesService { /** List content types, optionally category-filtered + paginated. */ list(query?: ContentTypeListQuery): Promise; /** List pack-registered CTs (category=pack) — e.g. the People pack's 27. */ listPack(query?: Omit): Promise; /** Read one CT by wire name — unknown name raises (404). */ getByName(name: string): Promise; /** * `PUT /content-types/{ct_id}` `{is_active}` — the E8b pack-disable * surface (api_references §1/§4.2 of the testing guide): disabling a pack * flips every pack CT inactive so every create path rejects. Engine-side * only surface exposed here for the portal's Pack Management lane. */ setActive(ctId: number | string, isActive: boolean): Promise; } export declare function createContentTypesService(opts: IContentTypesServiceOptions): IContentTypesService; //# sourceMappingURL=index.d.ts.map