import type { ContentFields, ContentTypeProps } from 'contentful-management'; import type { SessionState } from '../session/state.js'; import type { SafeEnvironment } from './client.js'; /** Clears in-process content-type cache (for tests). */ export declare function clearContentTypeCacheForTests(): void; export declare function getContentTypeCached(env: SafeEnvironment, session: SessionState, ctId: string): Promise; export declare function getActiveFieldDef(ct: ContentTypeProps, fieldId: string): ContentFields | undefined; export type SetSchemaConflict = { kind: 'entryLink'; } | { kind: 'assetLink'; } | { kind: 'entryLinkArray'; } | { kind: 'assetLinkArray'; }; /** * Validates that a field is suitable for --links (array of entry links). * Returns an error string if the field is incompatible, null if valid or unknown. */ export declare function validateLinksSetAgainstFieldSchema(fieldDef: ContentFields | undefined, fieldId: string): string | null; /** * When the user uses scalar `set` (no --link / --asset / --links / --json), * ensure the target field is not a RichText or Link type that requires those flags. */ export declare function validateScalarSetAgainstFieldSchema(fieldDef: ContentFields | undefined): SetSchemaConflict | null; //# sourceMappingURL=set-field-schema.d.ts.map