import type { Color } from '../styles/colors'; /** Underline styles per openpyxl's cell-level NestedNoneSet. */ export type InlineUnderline = 'single' | 'double' | 'singleAccounting' | 'doubleAccounting'; export type InlineVertAlign = 'baseline' | 'superscript' | 'subscript'; export interface InlineFont { readonly name?: string; readonly sz?: number; readonly b?: boolean; readonly i?: boolean; readonly u?: InlineUnderline; readonly strike?: boolean; readonly outline?: boolean; readonly shadow?: boolean; readonly condense?: boolean; readonly extend?: boolean; readonly vertAlign?: InlineVertAlign; readonly color?: Color; readonly family?: number; readonly charset?: number; readonly scheme?: 'major' | 'minor'; } export interface TextRun { readonly text: string; readonly font?: InlineFont; } /** A frozen array of TextRuns. The shared cell value shape under `kind: 'rich-text'`. */ export type RichText = ReadonlyArray; export declare function makeTextRun(text: string, font?: InlineFont): TextRun; export declare function makeRichText(runs: ReadonlyArray): RichText; /** * Concatenate the plain-text content of a rich-text value (rich-text * read paths often want the raw text without formatting). */ export declare function richTextToString(rt: RichText): string;