import type { Color } from '../../../avocado-icons'; export declare const TABLE_PILL_VARIANTS: readonly ["success", "warning", "error", "info", "neutral"]; export type TablePillVariant = (typeof TABLE_PILL_VARIANTS)[number]; export type TablePillColors = { color: `${Color}`; textColor: `${Color}`; iconColor: `${Color}`; }; export declare const PILL_VARIANT_COLORS: Record; /** * Colors for outlined pills. * * `Pill` paints `color` as the 1px border when `outlined` is set, so the filled * tokens above cannot be reused: `neutral-10` would render an almost invisible * border. Each variant gets a solid border token and a readable text token. */ export declare const PILL_OUTLINED_VARIANT_COLORS: Record; /** * The tokens a pill of this variant needs, filled or outlined. * * `Pill` paints `color` as the border when `outlined` is set, so the two looks * cannot share a table: the filled tokens would draw a border the user cannot * see. Every caller that renders a pill from a variant has to go through here, * or the outlined look silently degrades to an invisible outline. */ export declare const resolvePillColors: (variant: TablePillVariant, outlined?: boolean) => TablePillColors; export declare const TABLE_PILL_OUTLINED_TOKEN = "outlined"; export declare const isTablePillVariant: (value: unknown) => value is "success" | "warning" | "error" | "info" | "neutral"; export type ParsedTablePill = { label: string; variant: TablePillVariant; outlined?: boolean; }; /** * Column level defaults applied to cell values that carry no variant of their * own, so a whole column (e.g. business tags) can share one look. */ export type TablePillColumnDefaults = { variant?: TablePillVariant; outlined?: boolean; }; /** * Normalizes a table cell value into pill entries. * * Not Front table ``translations`` support three shapes: * * - ``[label]`` — one pill with the column look (neutral filled by default). * - ``[label, variant]`` — one semantic pill when ``variant`` is a known token * (``success`` | ``warning`` | ``error`` | ``info`` | ``neutral``). * - ``[label, variant, 'outlined']`` — the same, rendered as an outlined pill. * Value level opt-in, so one column can mix filled and outlined pills. * The third element is a reserved token: do not use ``'outlined'`` as a tag * label when the second element is a variant token. * * Any other array length renders one pill per element, which is how multi-tag * columns keep working. Those pills follow ``defaults``, letting a column ask * for e.g. outlined ``info`` tags without touching the API payload. */ export declare const parseTablePillCell: (values: unknown[], defaults?: TablePillColumnDefaults) => ParsedTablePill[];