import { ComputedRef, Ref } from 'vue'; import { Key } from '../../interface'; export interface ListPositionStackConfig { threshold?: number; offset?: number; } /** * Calculates each notification's position and the full list height. * Mirrors rc-notification@2.0 useListPosition. */ export default function useListPosition(configList: ComputedRef<{ key: Key; }[]>, stack: ComputedRef, gap: Ref): readonly [ComputedRef<{ notificationPosition: Map; totalHeight: number; topNoticeHeight: number | undefined; topNoticeWidth: number | undefined; }>, (key: string, node: HTMLDivElement | null) => void];