import { GetKey } from '../interface';
import { Ref, ShallowRef } from 'vue';
export type CacheMap = Map<any, number>;
export declare function useHeights<T>(mergedData: ShallowRef<any[]>, getKey: GetKey<T>, onItemAdd?: ((item: T) => void) | null, onItemRemove?: ((item: T) => void) | null): {
    setInstance: (item: T, instance: HTMLElement) => void;
    collectHeight: () => void;
    heights: CacheMap;
    updatedMark: Ref<symbol>;
};
