import { TreeItem, GroupedItem, GroupedItems } from './Tree';
type VirtualizedItem = {
    type: 'group';
    data: GroupedItem;
    id: string;
    isExpanded: boolean;
} | {
    type: 'leaf';
    data: TreeItem;
    id: string;
    groupId: string;
};
export declare const useTreeVirtualization: (groupedItems: GroupedItems, flatItems: TreeItem[], hasSearchValue: boolean, hasGroups: boolean, internalExpandedGroups: string[] | undefined, scrollElementRef: React.RefObject<HTMLDivElement>, overscan: number) => {
    virtualizedItems: VirtualizedItem[];
    virtualizer: import('@tanstack/virtual-core').Virtualizer<any, Element>;
};
export {};
