import { FilterConfigObject, SelectOption } from '../types.js'; export declare const PILL_MAX_CHOICES = 3; export declare const PILL_MAX_WORD_WIDTH = 12; export declare const PILL_MAX_ROW_WIDTH = 30; /** How wide a chip's words are: a wide character 2, any other 1. */ export declare function wordWidth(text: string): number; /** The choice that means no condition - a select's empty first line. */ export declare function isNoChoice(option: SelectOption): boolean; /** * Include an all-selection chip for optional single selection and multiple selection. Omit it for required * single selection and standalone toggle chips. */ export declare function hasAllChip(filter: FilterConfigObject & { value?: any; }, options: SelectOption[]): boolean; /** * Use chips for at most three fixed options, at least two visible chips including all, and short individual * and combined labels. */ export declare function fitsAsPills(filter: FilterConfigObject & { value?: any; }, options: SelectOption[], allLabel: string): boolean;