import * as React from 'react'; import { FinderGroup } from './finder-panel-view.js'; import 'react/jsx-runtime'; /** * Which group and which row a finder panel has selected. The row falls back to * the first visible one, so changing group (or the rows) never leaves the detail * pane pointing at something that is no longer listed. */ declare function useFinderSelection({ groups, rows, getRowId, getRowGroupId, defaultGroupId, }: { groups: FinderGroup[]; rows: T[]; getRowId: (row: T) => string | number; getRowGroupId: (row: T) => string; defaultGroupId?: string; }): { selectedGroupId: string; setSelectedRowId: React.Dispatch>; visibleRows: T[]; resolvedRowId: string | number | null; selectedRow: NonNullable | null; handleSelectGroup: (id: string) => void; }; export { useFinderSelection };