import { StoreDefinition } from 'pinia'; /** * useSelectionStore is a state management store that handles the selection of nodes, files, and folders. * It provides actions to manipulate the selection state, such as adding or removing nodes, managing single or * multiple selections, and updating related states like selection visibility and page selection status. * * State Properties: * - nodes: Array holding the currently selected nodes. * - files: Array holding the currently selected file nodes. * - folders: Array holding the currently selected folder nodes. * - isCurrentPageFullySelected: Boolean indicating if the current page is fully selected. * - isSelectionRemovalVisible: Boolean indicating if the selection removal option should be visible. * * Actions: * - resetSelection: Clears the current selection and resets nodes. * - addNode: Adds a node to the current selection. * - removeNode: Removes a node from the current selection. * - selectSingleNode: Replaces the current selection with a single node. * - selectNodes: Replaces the current selection with a provided list of nodes. * - setIsCurrentPageFullySelected: Updates the state indicating if the current page is fully selected. * - setIsSelectionRemovalVisible: Updates the state indicating if the selection removal option is visible. */ export const useSelectionStore: StoreDefinition<"SelectionStore", { nodes: any[]; files: any[]; folders: any[]; isCurrentPageFullySelected: boolean; isSelectionRemovalVisible: boolean; }, {}, { resetSelection(): void; /** * Add node to the current selection * @param node Node to add */ addNode(node: any): void; /** * Remove node from the current selection * @param node Node to remove */ removeNode(node: any): void; /** * Replace current selection with a single node. * @param node The seelcted node. */ selectSingleNode(node: any): void; /** * Replace current selection with nodes. * @param selNodes List of nodes or undefined to reset current list. */ selectNodes(selNodes: any): void; /** * * @param isCurrentPageFullySelected */ setIsCurrentPageFullySelected(isCurrentPageFullySelected: any): void; /** * * @param isSelectionRemovalVisible */ setIsSelectionRemovalVisible(isSelectionRemovalVisible: any): void; }>; //# sourceMappingURL=selection.d.ts.map