import { default as React } from 'react'; import { useVirtualizer, Virtualizer } from '@tanstack/react-virtual'; type VirtualProps = { /** This is the number of rows in the dataset */ count: number; /** Children is a function that has access to the useVirtualizer hook value and the ref that needs to be wrapped around the virtualized content. */ children: ({ virtualizer, virtualizedParentRef, }: { virtualizer: ReturnType; virtualizedParentRef: React.RefObject; }) => React.JSX.Element; /** Optionally pass in more react-virtual props for the useVirtualizer */ virtualizerProps?: Parameters[0]; /** Optionally define the row height for the rows. Note: This is not on a row-by-row basis. It will apply to every row. The default is 40px. */ rowHeight?: number; }; declare const Virtual: { ({ count, children, virtualizerProps, rowHeight, }: VirtualProps): React.JSX.Element; List: ({ virtualizer, children, }: VirtualListProps) => React.JSX.Element; }; type VirtualListProps = { virtualizer: ReturnType; children: ({ index, measureElement, }: { index: number; measureElement: Virtualizer['measureElement']; }) => React.JSX.Element; }; export declare const VirtualList: ({ virtualizer, children, }: VirtualListProps) => React.JSX.Element; export { Virtual };