export interface ICellStyleColor { rgb?: string; theme?: number; tint?: number; indexed?: string | number; auto?: boolean; } export type IBorderStyle = "dashDot" | "dashDotDot" | "dashed" | "dotted" | "hair" | "medium" | "mediumDashDot" | "mediumDashDotDot" | "mediumDashed" | "slantDashDot" | "thick" | "thin"; export interface ICellStyle { alignment?: { horizontal?: "left" | "center" | "right"; vertical?: "top" | "center" | "bottom"; indent?: number; readingOrder?: number; textRotation?: number; wrapText?: boolean; }; border?: { top?: { color?: ICellStyleColor; style?: IBorderStyle; }; bottom?: { color?: ICellStyleColor; style?: IBorderStyle; }; left?: { color?: ICellStyleColor; style?: IBorderStyle; }; right?: { color?: ICellStyleColor; style?: IBorderStyle; }; diagonal?: { color?: ICellStyleColor; style?: IBorderStyle; diagonalUp?: boolean; diagonalDown?: boolean; }; }; fill?: { bgColor?: ICellStyleColor; fgColor?: ICellStyleColor; patternType?: "solid" | "none" | "gray125"; }; font?: { bold?: boolean; color?: ICellStyleColor; italic?: boolean; name?: string; outline?: boolean; shadow?: boolean; strike?: boolean; sz?: number; underline?: boolean; vertAlign?: "superscript" | "subscript"; }; numFmt?: string | number; } export type ICellType = "b" | "n" | "e" | "s" | "d" | "z" | "str"; export interface IStyledCell { v?: string | number | boolean | Date; t?: ICellType; s?: ICellStyle; z?: string; l?: { Target: string; Tooltip?: string; }; } interface IWorksheetLike { [key: string]: unknown; } interface IWorkbookLike { SheetNames: string[]; Sheets: Record; } export type IStyledOutput = ArrayBuffer | Buffer | Uint8Array | string; export declare const mergeCellStyles: (...styles: Array) => ICellStyle; export declare const isCellStyleObject: (style: unknown) => style is ICellStyle; export declare const patchStyledWorkbook: (workbook: IWorkbookLike, workbookData: ArrayBuffer | Uint8Array) => Uint8Array; export declare const toStyledOutput: (data: Uint8Array, type?: string) => IStyledOutput; export declare const saveXlsxOutput: (data: ArrayBuffer | Uint8Array, filename: string) => void; export {};