/** * Copyright IBM Corp. 2016, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; interface UseSelectionProps { disabled?: boolean; filteredItems?: ItemType[]; initialSelectedItems?: ItemType[]; onChange?: (data: { selectedItems: ItemType[]; }) => void; selectAll?: boolean; selectedItems?: ItemType[]; } export declare const useSelection: ({ disabled, onChange, initialSelectedItems, selectedItems: controlledItems, selectAll, filteredItems, }: UseSelectionProps) => { clearSelection: () => void; onItemChange: (item: ItemType) => void; toggleAll: (items: ItemType[]) => void; selectedItems: ItemType[]; }; interface SelectionRenderProps { clearSelection: () => void; onItemChange: (item: ItemType) => void; selectedItems: ItemType[]; } interface SelectionProps { children?: (renderProps: SelectionRenderProps) => React.ReactNode; disabled?: boolean; initialSelectedItems: ItemType[]; onChange?: (state: { selectedItems: ItemType[]; }) => void; render?: (renderProps: SelectionRenderProps) => React.ReactNode; } export declare const Selection: ({ children, disabled, initialSelectedItems, onChange, render, }: SelectionProps) => import("react/jsx-runtime").JSX.Element | null; export {};