import { RenderingLayer } from '../../models/models.layers'; import { Selection } from '../../models/models.selections'; /** * Updates rendering layers and returns the new selectionKey. * * Iterates through the renderingLayers array and finds the layer with the given key. * - If the layer does not have a selectionKey, generates a new one and assigns it. * - If the layer already has a selectionKey, keeps it unchanged. * Returns the updated layers and the selectionKey for further selection logic. * * @param {Partial[]} renderingLayers - Array of rendering layers. * @param {string} layerKey - The key of the layer to update. * @returns {{ changedLayers: Partial[], selectionKey: string }} The updated layers and the selection key. * @throws {Error} If no selectionKey is found or generated for the layer. */ export declare function updateRenderingLayers(renderingLayers: Partial[], layerKey: string): { changedLayers: Partial[]; selectionKey: string; }; /** * Updates or creates a selection object in the selections array. * If overwrite is true, replaces featureKeys with a single featureKey. * * @param {Selection[]} selections - Array of selection objects. * @param {string} selectionKey - The key of the selection to update or create. * @param {string} featureKey - The feature key to add or set. * @param {Partial | undefined} customSelectionStyle - Custom selection style object. * @param {boolean} [overwrite=false] - If true, overwrite featureKeys with a single featureKey. * @returns {Selection[]} The updated selections array. */ export declare function updateSelections(selections: Selection[], selectionKey: string, featureKey: string | number, customSelectionStyle: Partial | undefined, overwrite?: boolean): Selection[];