import type { FilterValue } from '../types.js'; /** * The words of a filter the bar holds outside its fields (a chip) - what a person reads, never a record's key. * * A list opened for one record (a check's row, a link, the AI's choice) narrows by `id in []`, and a list of one * parent's rows by `Id = `. The chip printed those values as they were, so a person read * 「id in 87f12d98-979a-…」 (2026-11-14). A key is named by what it keys: the records the grid holds name themselves * (the list's title field, else `name`), a parent by the object beside its key (`contractId` → `contract.name`). * A key with no name in the rows is counted, not printed. */ export type ChipWords = { /** The column's header, when the grid has the column. */ label?: string; /** The records the grid holds now. */ records?: readonly Record[]; /** The field a record is titled by - the list's first field. */ titleField?: string; /** `text.grid-filter-records` - 「선택한 항목 {n}건」. */ counted: (n: number) => string; /** `text.grid-filter-and-more` - 「{name} 외 {n}건」. */ more: (name: string, n: number) => string; }; export declare function chipText(filter: FilterValue, words: ChipWords): string;