import { TableDataSource, TableRowSelectionCheckbox } from '@mezzanine-ui/core/table'; export interface UseTableRowSelectionProps { getSubData: (record: T) => T[] | undefined; } /** * Custom hook for users to manage row selection state in a table with expandable rows. */ export declare function useTableRowSelection(props: UseTableRowSelectionProps): { parentSelectedKeys: string[]; parentOnChange: (selectedRowKeys: string[], selectedRow: T | null, selectedRows: T[]) => void; parentGetCheckboxProps: (record: T) => { indeterminate?: boolean; selected?: boolean; }; getChildOnChange: (record: T) => TableRowSelectionCheckbox["onChange"]; getChildSelectedRowKeys: (record: T) => string[]; totalSelectionCount: number; };