import { ReactNode } from 'react'; import { ItemContentProps } from '../../../helperComponents'; import { FlattenItem, FocusFlattenItem, ItemId } from '../../Items'; type ContentRenderProps = { id?: ItemId; content?: ItemContentProps | ReactNode; disabled?: boolean; }; export type PublicListContextType = { /** Размер списка */ size?: 's' | 'm' | 'l'; /** Отображать ли маркер у выбранного жлемента списка */ marker?: boolean; /** * Рендер функция основного контента айтема */ contentRender?(props: ContentRenderProps): ReactNode; virtualized?: boolean; }; export type PrivateListContextType = { flattenItems: Record; focusFlattenItems: Record; firstItemId?: ItemId; }; type Child = { children: ReactNode; }; type ListContextType = PublicListContextType & PrivateListContextType; export declare const ListContext: import("react").Context; export declare function useNewListContext(): ListContextType; export declare function NewListContextProvider({ children, ...props }: ListContextType & Child): import("react/jsx-runtime").JSX.Element; export {};