import { type StatusTone, type V2Format } from './format.util'; import type { TableColumnWire } from '../types/table.type'; export declare const PAGE_RANGE_PREFIX = "Filas"; /** Pairs shown on a card before the «Ver los N datos» disclosure. */ export declare const CARD_PAIRS = 3; /** * A text column wraps (by word, never inside one) only when one of its cells * is longer than this; shorter text, dates, numbers and pills stay on one line. */ export declare const WRAP_AFTER = 30; /** Pill `status` for each closed tone; colors come from `statusColor`, not from here. */ export declare const PILL_STATUS: Record; export type TableCell = { text: string; tone?: StatusTone; }; export type TableColumnModel = { label: string; align: 'start' | 'end'; /** Long text: the column may wrap between words; every other column is one line. */ wrap: boolean; }; export type TableModel = { columns: TableColumnModel[]; rows: TableCell[][]; }; /** * Reads a row field as an own property only: a column named `constructor`, * `__proto__` or `prototype` never reads the prototype chain. A row that is * not a plain object has no fields. */ export declare const readOwn: (row: unknown, field: string) => unknown; /** * Cells of the current page. A status column shows the pill text with its * tone; any other column is numeric when every present value is a finite * number (`decimal` when one of them has decimals, else `number`), and text * otherwise. Missing is `—`. Only a text column with a cell longer than * `WRAP_AFTER` characters wraps. */ export declare const toTableModel: (columns: readonly TableColumnWire[], rows: readonly unknown[], format: (value: unknown, format: V2Format) => string) => TableModel; export type CardCell = TableCell & { label: string; }; export type CardModel = { title: CardCell; pairs: CardCell[]; rest: CardCell[]; }; /** First column is the title, the next three are pairs, the rest hides behind the disclosure. */ export declare const splitCard: (cells: readonly TableCell[], labels: readonly string[]) => CardModel; /** «Filas 1 a 15»: the rows of the page by position; piper-lite pages have no total. */ export declare const rangeLabel: (pageIndex: number, pageSize: number, rowCount: number) => string;