import type { ContentFields } from 'contentful-management'; import type { SpaceConfig } from '../config/types.js'; import type { SafeEnvironment } from './client.js'; export interface MediaSpecFromJson { assetId: string; name: string; position?: string; width?: number; } export interface ResolveComponentFieldsResult { fields: Record; warnings: string[]; createdMediaEntryIds: string[]; } /** * Resolves explicit visual/mobileVisual shorthands in component `fields`, then returns * remaining keys for scalar/RTF assignment. */ export declare function resolveComponentFieldsFromJson(rawFields: Record, ctFields: ContentFields[], env: SafeEnvironment, space: SpaceConfig, locale: string): Promise; /** * Coerces a field value using content-type schema (Asset/Entry links, RTF unchanged). */ export declare function coerceLinkFieldValueFromJson(value: unknown, fieldDef: ContentFields | undefined): unknown; //# sourceMappingURL=field-value-from-json.d.ts.map