export interface FormatResult { text: string; color?: string; fills?: string[]; } export declare const FILL_SENTINEL = "\u0001"; export declare function formatValue(value: number, fmt: string | undefined): FormatResult; export declare function formatGeneral(v: number): string; export type Tok = { kind: "lit"; s: string; } | { kind: "digit"; ch: "0" | "#" | "?"; } | { kind: "dot"; } | { kind: "percent"; } | { kind: "exp"; sign: "+" | "-" | ""; upper: boolean; } | { kind: "date"; field: string; } | { kind: "elapsed"; field: "h" | "m" | "s"; width: number; } | { kind: "ampm"; upper: boolean; abbreviated: boolean; } | { kind: "fill"; ch: string; } | { kind: "general"; } | { kind: "text"; }; export interface Section { tokens: Tok[]; color?: string; condition?: { op: ">" | "<" | ">=" | "<=" | "=" | "<>"; value: number; }; flavor: "number" | "date" | "fraction" | "scientific" | "text" | "literal"; intPlaces: number; fracPlaces: number; hasGrouping: boolean; scale: number; fractionDenom: number; fractionDenomQs: number; fractionIntPlaces: number; fractionHideZeroInt: boolean; expSign: "+" | "-" | ""; expDigits: number; expUpper: boolean; }