import type { RenderedFieldListItem } from '../types/field.js'; import type { FieldConfig } from '../types/definitions.js'; type SwapValidationContext = { getFieldConfig: (entityType: string, entityBundle: string, fieldName: string) => FieldConfig | undefined; checkBlockBundlePermission: (bundle: string, operation: 'edit') => boolean; blockHasRestrictedAncestor: (uuid: string) => boolean; }; /** * Check whether two blocks can be swapped. * Returns null if swap is possible, or a reason string if not. */ export declare function getSwapDisabledReason(blockA: RenderedFieldListItem, blockB: RenderedFieldListItem, ctx: SwapValidationContext): string | null; export {};