/**
 * Calculates how many tags overflow the container by walking the rendered tag widths.
 *
 * Walks the tag elements left-to-right, accumulating their widths. When the next tag
 * would exceed the available container width (reserving space for the "+N" badge whenever
 * more tags follow), it records the visible count and stops.
 *
 * @param container - The scrollable container holding the tag elements.
 * @param tagEls - The rendered tag DOM elements to measure.
 * @returns The number of tags that don't fit (0 if everything fits).
 */
declare function calculateTagOverflow(container: HTMLElement, tagEls: HTMLElement[]): number;
declare function calculateTagOverflow(containerWidth: number, tagWidths: number[]): number;
export default calculateTagOverflow;
