import { CompletionItemGroup, CompletionItem } from '../types/completion';
import { GrafargTheme } from '@grafarg/data';
export declare const flattenGroupItems: (groupedItems: CompletionItemGroup[]) => CompletionItem[];
export declare const calculateLongestLabel: (allItems: CompletionItem[]) => string;
export declare const calculateListSizes: (theme: GrafargTheme, allItems: CompletionItem[], longestLabel: string) => {
    listWidth: number;
    listHeight: number;
    itemHeight: number;
};
export declare const calculateItemHeight: (longestLabelHeight: number, theme: GrafargTheme) => number;
export declare const calculateListWidth: (longestLabelWidth: number, theme: GrafargTheme) => number;
export declare const calculateListHeight: (itemHeight: number, allItems: CompletionItem[]) => number;
