import { DataRowProps } from '../../../../../types'; import { ITree } from '../../tree'; import { CommonTreeConfig } from '../../tree/hooks/strategies/types'; /** * Checking service configuration. */ export interface UseSelectingServiceProps extends Pick, 'getParentId' | 'dataSourceState' | 'setDataSourceState'> { /** * Tree-like data, selection should be performed on. */ tree: ITree; } /** * Service, which provides selecting functionality and seleting info. */ export interface SelectingService { /** * Selecting handler of a row. * @param row - row, which should be selected. */ handleOnSelect: (row: DataRowProps) => void; /** * Provides knowledge about selection state of the row. * @param row - row, which selection state info should be returned. * @returns if row is selected. */ isRowSelected: (row: DataRowProps) => boolean; /** * Provides knowledge about children selection state of the row. * @param row - row, which children selection state info should be returned. * @returns if row is selected. */ isRowChildSelected: (row: DataRowProps) => boolean; } /** * Service, which provides selection functionality. * @returns selecting service. */ export declare function useSelectingService({ tree, getParentId, dataSourceState, setDataSourceState, }: UseSelectingServiceProps): SelectingService; //# sourceMappingURL=useSelectingService.d.ts.map