import { Context } from '../context'; import { Cell, CellMatrix, CellStyle, HyperlinkEntry } from '../types'; export declare const attrToCssName: { bl: string; it: string; ff: string; fs: string; fc: string; cl: string; un: string; }; export declare const inlineStyleAffectAttribute: { bl: number; it: number; ff: number; cl: number; un: number; fs: number; fc: number; }; export declare const inlineStyleAffectCssName: { 'font-weight': number; 'font-style': number; 'font-family': number; 'text-decoration': number; 'border-bottom': number; 'font-size': number; color: number; }; export declare function isInlineStringCell(cell: any): boolean; export declare function isInlineStringCT(ct: any): boolean; export declare function getInlineStringNoStyle(r: number, c: number, data: CellMatrix): string; export declare function convertCssToStyleList(cssText: string, originCell: Cell): CellStyle; export type InlineSegmentLink = { linkType: string; linkAddress: string; }; export declare function getHyperlinksFromInlineSegments(cell: Cell | null | undefined): InlineSegmentLink[]; /** Matches `getLinkStyleCssText` / apply-hyperlink blue foreground in the editor. */ export declare function isDefaultHyperlinkForeground(fc: string): boolean; /** * Drop fc/un that hyperlink insertion adds to inline runs (link metadata is removed separately). * Preserves user bold/italic/etc. on the same segment. */ export declare function stripInlineSegmentHyperlinkDecoration(seg: CellStyle): void; export declare function convertSpanToShareString($dom: NodeListOf, originCell: Cell): (CellStyle & { v?: string; link?: InlineSegmentLink; })[]; export declare function updateInlineStringFormatOutside(cell: Cell, key: string, value: any): void; export declare function updateInlineStringFormat(ctx: Context, attr: keyof Cell, value: any, cellInput: HTMLDivElement): void; /** Applies link style (blue + underline) and data-link-* to the current selection in cellInput. Persisted on blur via convertSpanToShareString. */ export declare function applyLinkToSelection(cellInput: HTMLDivElement, linkType: string, linkAddress: string): void; /** * When the window selection is still inside the cell editor, read hyperlink from the * linked span(s) at both range endpoints (same link required). */ export declare function getUniformLinkFromWindowSelectionInEditor(root: HTMLElement): HyperlinkEntry | undefined; /** * Caret or range inside `root`: returns the hyperlink on the collapsed caret, or the * uniform link when a non-collapsed selection stays within one link (same as * {@link getUniformLinkFromWindowSelectionInEditor}). */ export declare function getHyperlinkAtCaretInContentEditable(root: HTMLElement): HyperlinkEntry | undefined;