import { CellDefinition, CellStyle, CellValue, ColumnDefinition, GridSection, RowDefinition } from './table-types'; export declare function cellValueToText(value: CellValue): string; export declare function splitCellText(value: string): string[]; export interface NormalizedCell { value: CellValue; colSpan: number; rowSpan: number; style: Partial; href?: string; } export declare function normalizeCell(definition: CellDefinition): NormalizedCell; export declare function inferColumns(explicit: ColumnDefinition[] | undefined, head: RowDefinition[], body: RowDefinition[], foot: RowDefinition[]): ColumnDefinition[]; export declare function extractRowCells(row: RowDefinition, columns: ColumnDefinition[]): (CellDefinition | undefined)[]; export declare function buildSectionRows(rows: RowDefinition[] | undefined, columns: ColumnDefinition[], derive?: (column: ColumnDefinition) => CellValue): RowDefinition[]; export declare function mergeCellStyle(...layers: (Partial | undefined)[]): Partial; export declare function resolvePadding(style: CellStyle): { top: number; right: number; bottom: number; left: number; }; export declare function borderWidthFor(style: CellStyle, side: 'top' | 'right' | 'bottom' | 'left'): number; export declare function formatCellValue(value: CellValue, column: ColumnDefinition | null, rowIndex: number, section: GridSection): string;