/** * Internal dependencies */ import type { View } from '../types'; /** * Hook to get selected items, with support for infinite scroll. * * When infinite scroll is enabled, items that scroll out of view are cached * so they remain available for bulk actions even when not in the current data set. * * @param view The current view configuration. * @param data The current page of data items. * @param selection Array of selected item IDs. * @param getItemId Function to get the ID of an item. * @param filterFn Optional filter function to apply to selected items (e.g., for selectability). * @return Array of selected items. */ export default function useSelectedItems(view: View, data: Item[], selection: string[], getItemId: (item: Item) => string, filterFn?: (item: Item) => boolean): Item[]; //# sourceMappingURL=use-selected-items.d.ts.map