import { type RefObject } from "react";
/**
 * Custom hook that calculates how many items can fit in a container without overflowing
 */
export default function useItemsOverflow({ containerRef, gap, deductedSpaceRef, itemRefs }: {
    containerRef: RefObject<HTMLElement>;
    gap: number;
    deductedSpaceRef?: RefObject<HTMLElement>;
    itemRefs: RefObject<HTMLElement>[];
}): number;
