/** * Scalable safety net for enum/status/option values that have **no matching * declared option**. Turns a raw machine token into a readable label so a cell * never leaks `in_progress` / `out-of-stock` verbatim: * * - `in_progress` → `In Progress` (snake_case) * - `out-of-stock` → `Out Of Stock` (kebab-case) * - `payment.failed` → `Payment Failed` (dotted) * - `sale` → `Sale` (single word) * - `pos` → `POS`, `sku_count` → `SKU Count` (acronyms uppercased) * * This is a FALLBACK only. The localized source of truth is the `options` an * addon declares; callers must prefer a matched `option.label` and only reach * for `humanizeToken` when nothing matched. * * Values that don't look like an enum token are returned unchanged: anything * already containing whitespace (free text), overly long strings, UUIDs, and * non-strings. This keeps it safe to call on arbitrary cell values. */ export declare function humanizeToken(value: unknown): string; export type MetadataTranslator = (key: string, options?: { defaultValue?: string; }) => string; /** * Resolve addon-contributed metadata at render time. Known i18n keys use the * host locale; missing keys degrade to a readable label instead of leaking a * machine path such as `models.orders.table.columns.payment_status`. */ export declare function translateMetadataLabel(value: string | undefined, translate?: MetadataTranslator): string; //# sourceMappingURL=dynamic-columns-helpers.d.ts.map