import type { GetKey } from '../interface'; import CacheMap from '../utils/CacheMap'; export default function useHeights(getKey: GetKey, onItemAdd?: (item: T) => void, onItemRemove?: (item: T) => void): [(item: T, instance: HTMLElement) => void, () => void, CacheMap, number];