import type { ContentTypeProps } from 'contentful-management'; /** * Pick a label field that exists on the content type. * Components use cmsLabel; media/person/externalVideo use name. */ export declare function pickInitialLabelFieldId(fieldIds: Iterable): string | null; export interface BuildAddCreateFieldsOptions { contentTypeId: string; /** Positional `` from `add ` — enum for typed CTs, else used as initial label. */ typeArg: string; locale: string; /** Optional override for the initial label value (default `New ${typeArg}`). */ label?: string; /** When creating media, link this asset if the CT has an `asset` field. */ assetId?: string; } /** * Build CMA create fields for `cms-edit add`, only including fields present on the CT. * Never sends cmsLabel when the type has no such field (media/person 422). */ export declare function buildAddCreateFields(ctDef: ContentTypeProps, opts: BuildAddCreateFieldsOptions): { fields: Record>; labelFieldId: string | null; hasTypeField: boolean; typeFieldId: string; }; //# sourceMappingURL=add-initial-fields.d.ts.map