import type { CellEditorType, CellEditorOption } from "./index"; import type { ResolvedCellFormat } from "./conditional-formatting"; export declare function cfTextStyle(cf: ResolvedCellFormat): string; export declare function fmtStat(n: number): string; export declare function getCellKey(rowId: string, columnId: string): string; /** * Normalise the return value of a `cellClass` / `rowClass` callback * (or a static `cellClass` field) into a single space-separated * class string. Accepts: string, string[], Record, * null/undefined. Anything else returns ''. */ export declare function resolveClassList(value: string | ReadonlyArray | Record | undefined | null): string; export declare function toDateInputValue(value: unknown): string; export declare function toDateTimeLocalInputValue(value: unknown): string; /** 'HH:MM[:SS]' string (or Date) to a Date carrying that time (today's date). */ export declare function timeStringToDate(value: unknown): Date | null; /** A Date to an 'HH:MM' string (the `time` editor's stored form). */ export declare function dateToTimeString(d: Date | null): string | null; export declare function getEditableInputValue(editorType: CellEditorType, value: unknown): string; export declare function getEditorInputType(editorType: CellEditorType): "number" | "date" | "text" | "time" | "password" | "color" | "datetime-local"; /** Resolve a stored value to an array form (for list/chips multi-select). */ export declare function toValueArray(value: unknown): Array; /** Look up the display label for a given option value. */ export declare function getOptionLabel(options: CellEditorOption[], value: unknown): string; /** Look up the configured `color` for a value (for colorful chips). */ export declare function getOptionColor(options: CellEditorOption[], value: unknown): string | undefined; /** Build a theme-aware inline `style` string for a colorful chip. The * color value can be any CSS color (hex, rgb, hsl, oklch, named). * We tint the background and border via `color-mix` so the chip stays * readable on light AND dark themes, and use the color itself as the * text color for a soft-pill look (à la GitHub labels). */ export declare function colorfulChipStyle(color: string | undefined): string; export declare function getEditorClass(editorType: CellEditorType): "sv-grid-cell-editor sv-grid-cell-editor-number" | "sv-grid-cell-editor sv-grid-cell-editor-date" | "sv-grid-cell-editor sv-grid-cell-editor-datetime" | "sv-grid-cell-editor sv-grid-cell-editor-color" | "sv-grid-cell-editor"; export declare function asDate(value: unknown): Date | null; export declare function clampMenuX(x: number, width: number): number; export declare function cssEscape(s: string): string; export declare function rawToNumber(raw: unknown, isDate: boolean): number; export declare function formatFacetNumber(n: number): string; export declare function formatFacetDate(timestamp: number): string;