import { DataSourceListProps } from '../../../../types'; import { CommonTreeConfig, ITreeLoadingState } from '../tree/hooks/strategies/types/common'; import { ITree } from '../tree'; import { CascadeSelectionService } from './services/useCascadeSelectionService'; import { GetItemStatus } from '../tree/hooks/strategies/types'; /** * `useDataRows` configuration. */ export interface UseDataRowsProps extends Omit, 'patch'>, ITreeLoadingState, Partial>, GetItemStatus { /** * Tree-like data, rows to be built from. */ tree: ITree; } /** * Hook, which builds rows, based on the tree. * @returns rows and other IDataSourceView fields. */ export declare function useDataRows(props: UseDataRowsProps): { listProps: DataSourceListProps; rows: import("src/types/dataRows").DataRowProps[]; getSelectedRowsCount: () => number; getById: (id: TId, index: number) => import("src/types/dataRows").DataRowProps; clearAllChecked: () => void; selectAll: { value: boolean; onValueChange: (isChecked: boolean) => void; isDisabled: boolean; indeterminate: boolean; } | { value: boolean; onValueChange: (isChecked: boolean) => void; indeterminate: boolean; isDisabled?: undefined; }; }; //# sourceMappingURL=useDataRows.d.ts.map