/** * Column `options` serialization for the declarative `` API. * * Mirrored verbatim in `@toolbox-web/grid-vue`. This deliberately does NOT live * in `@toolbox-web/grid`: core's `index.js` sits at ~48.4 kB gzipped against a * 50 kB hard budget, and no core consumer calls a serializer — only the * declarative adapter column components do. See the DECIDED entry in * `.github/knowledge/adapters.md`. * * The format authority is core's `parseLightDomColumns` * (`core/internal/columns.ts`), which reads the `options` attribute as CSV * (`"admin:Admin,user"`). Keep this function in lockstep with that parser; the * round-trip test in `column-options.spec.ts` pins the contract. */ /** * Select/typeahead options accepted by ``. * * Either bare values (label defaults to the value) or `{ label, value }` * pairs. Values and labels are serialized into an attribute, so they must not * contain `,` or `:`. * @since 2.5.0 */ export type ColumnOptions = Array | Array<{ label: string; value: string | number; }>; /** * Flatten {@link ColumnOptions} into the `options` attribute CSV understood by * the core column parser. Returns `undefined` for an empty list so the * attribute is omitted entirely. */ export declare function serializeColumnOptions(options: ColumnOptions): string | undefined; //# sourceMappingURL=column-options.d.ts.map