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; /** * Whether the chips have a first 「전체」 chip. Several at once, or a single choice with an empty line, can choose * nothing - every row - and the 「전체」 chip is that choice, seen. A single choice with no empty line and a value it * opens with must always have one (the inquiry list's old 「보기」, the audit period) and has none. A lone chip is a * switch - 「취소된 발행」 shows only those - and has none either. */ export declare function hasAllChip(filter: FilterConfigObject & { value?: any; }, options: SelectOption[]): boolean; /** * Whether a select of these fixed choices is drawn as chips: at most three choices, two chips at least with 「전체」, * the words short each and together with 「전체」. */ export declare function fitsAsPills(filter: FilterConfigObject & { value?: any; }, options: SelectOption[], allLabel: string): boolean;