import { ItemPickerListProps, OnLoadedData } from '../../ItemPickerNew/ItemPickerNew.types'; import { SearchByAction, SearchByParamConfig, SearchInAction } from '../../ItemPickerNew/types/actions.types'; import { BaseItemType, BaseSectionType, BaseSectionTypeWithFolders } from '../../ItemPickerNew/types/baseItemSectionType.types'; import { ItemPickerListTexts } from '../../ItemPickerNew/types/itemPickerListTexts.types'; type ItemsInSectionsType = { items: ItemPickerListProps['items']; texts: ItemPickerListTexts; selectedItem?: ItemType; sections?: SectionType extends BaseSectionType ? BaseSectionTypeWithFolders[] : undefined; recents?: ItemPickerListProps['recents']; actions?: ItemPickerListProps['actions']; searchQuery?: string; handleItemSelect?: (item: ItemType) => void; onSectionChange?: SectionType extends BaseSectionType ? (section?: BaseSectionTypeWithFolders) => void : undefined; getItemKey?: (item: ItemType) => string | number; showItemsSectionLabel: boolean; changeSearchQuery: (query: string) => void; onLoadedData?: OnLoadedData; }; export declare const useItemsInSections: ({ items, texts, selectedItem, sections, recents, actions, searchQuery, handleItemSelect, onSectionChange, getItemKey, showItemsSectionLabel, changeSearchQuery, onLoadedData, }: ItemsInSectionsType) => { currentSection: BaseSectionType | undefined; currentPath: import('react').ReactNode[] | undefined; goBack: () => void; resetCurrentSection: () => void; setCurrentSection: (section?: SectionType | BaseSectionType) => void; mergedItemsList: (import('@synerise/ds-list-item').ListItemProps | import('../ItemPickerList.types').TitleListItemProps)[]; isLoading: boolean; isLoadingMore: boolean; isLoadedAll: boolean; handleScrollEndReach: () => void; refreshItems: (() => void) | undefined; isLoadingError: boolean; isLoadingMoreError: boolean; contentHeight: number | undefined; refreshEnabled: boolean; searchByAction: SearchByAction | undefined; searchByParamConfig: SearchByParamConfig | undefined; setSearchByParamConfig: import('react').Dispatch>; listActions: boolean; searchInItem: ItemType | undefined; searchInAction: SearchInAction | undefined; canPerformListActions: boolean; reloadActiveSection: () => void; activeSectionId: string | undefined; }; export {};