import type { Cell } from '@fortune-sheet/core'; import { type XlsxSemanticColorOrigin } from './work-xlsx-cell-style-origin'; import type { SpreadsheetUnderlineCellValue } from './work-spreadsheet-underline'; export declare const MAX_XLSX_RICH_TEXT_CELL_CHARACTERS = 32767; export declare const MAX_XLSX_RICH_TEXT_RUNS_PER_CELL = 512; export declare const MAX_XLSX_RICH_TEXT_CELLS = 10000; export declare const MAX_XLSX_RICH_TEXT_RUNS = 100000; export declare const MAX_XLSX_RICH_TEXT_FONT_NAME_CHARACTERS = 128; export declare const MAX_XLSX_RICH_TEXT_FONT_SIZE = 409; export interface XlsxRichTextRun { a3sXlsxColorOrigin?: XlsxSemanticColorOrigin; bl?: 0 | 1; cl?: 0 | 1; fc?: string; ff?: string; fs?: number; it?: 0 | 1; un?: SpreadsheetUnderlineCellValue; v: string; } export interface NormalizedXlsxRichTextCell { runs: XlsxRichTextRun[]; text: string; } /** * Normalizes the text state that may participate in caret-level rich-text * authoring. Native runs remain authoritative; bounded plain strings receive * one run derived from the cell-wide font so partial formatting and formatted * paste share the same conversion contract. */ export declare function normalizeXlsxRichTextEditSource(cell: Cell | null | undefined): NormalizedXlsxRichTextCell | null; export declare function xlsxRichTextBaseRun(cell: Cell | null | undefined, text: string): XlsxRichTextRun; export declare function normalizeXlsxRichTextCell(cell: Cell): NormalizedXlsxRichTextCell | null; export declare function normalizeXlsxRichTextRun(value: unknown): XlsxRichTextRun | null; export declare function normalizeXlsxRichTextColor(value: unknown): string | null; export declare function coalesceXlsxRichTextRuns(source: readonly XlsxRichTextRun[]): XlsxRichTextRun[]; export declare function sameXlsxRichTextRunStyle(left: XlsxRichTextRun, right: XlsxRichTextRun): boolean; export declare function validXlsxRichText(value: string): boolean; export declare function isHighSurrogate(value: number): boolean; export declare function isLowSurrogate(value: number): boolean;