/** * Utility functions for managing property editor UI state updates * when values are set programmatically. */ /** * Interface for items that can be selected/checked */ export interface UmbSelectableItem { value: string; selected?: boolean; checked?: boolean; } /** * Updates the selected state of items based on current selection. * This function is for internal use only within the property-editors package and should not be exposed * to external consumers to avoid unwanted external dependencies. * @internal * @template T * @param {T[]} items - Array of items to update * @param {string[]} selection - Array of selected values * @param {'selected' | 'checked'} stateProperty - Property name to update ('selected' or 'checked') * @returns {T[]} New array with updated state, or original array if no changes needed */ export declare function updateItemsSelectedState(items: T[], selection: string[], stateProperty?: 'selected' | 'checked'): T[]; /** * Helper function to ensure a value is an array * @param {string | string[] | null | undefined} value - Value to convert to array * @returns {string[]} Array representation of the value */ export declare function ensureArray(value: string | string[] | null | undefined): string[];