UNPKG

to-spreadsheet

Version:

npm package to create spreadsheet in node environment and in browser

41 lines (40 loc) 3.15 kB
import { IRows, IBorder, BorderStyle, ICellStyle, ICell, HorizontalAlignment, VerticalAlignment } from "."; declare const indexToVbIndex: (index: number) => number; declare const indexToVbRelationIndex: (index: number) => number; declare const indexToRowIndex: (index: number) => string; declare const rowColumnToVbPosition: (row: number, col: number) => string; declare const calculateExtant: (rows: IRows[]) => string; declare class SkipCell { private skipCell; getSkipCell: () => number; constructor(skipCell: number); } declare const skipCell: (skipCell: number) => SkipCell; declare class Equation { private equation; getEquation: () => string; constructor(equation: string); } declare const writeEquation: (equation: string) => Equation; declare const createBorder: (border: IBorder) => IBorder; declare const createAllBorders: (style?: BorderStyle, color?: string) => IBorder; declare const createTopBorder: (style?: BorderStyle, color?: string) => IBorder; declare const createBottomBorder: (style?: BorderStyle, color?: string) => IBorder; declare const createLeftBorder: (style?: BorderStyle, color?: string) => IBorder; declare const createRightBorder: (style?: BorderStyle, color?: string) => IBorder; declare const getBorderKey: (border?: IBorder) => string; declare const getStyleKey: (style?: ICellStyle) => string; declare const createStyledCell: (value: string | number, style?: ICellStyle) => ICell; declare const createBorderedCell: (value: string | number, border: IBorder) => ICell; declare const dateToExcelSerial: (date: Date) => number; declare const createDateCell: (date: Date, style?: ICellStyle) => ICell; declare const createBorderedDateCell: (date: Date, border: IBorder) => ICell; declare const createBackgroundCell: (value: string | number, backgroundColor: string) => ICell; declare const createForegroundCell: (value: string | number, foregroundColor: string) => ICell; declare const createColoredCell: (value: string | number, backgroundColor: string, foregroundColor: string) => ICell; declare const createBackgroundDateCell: (date: Date, backgroundColor: string) => ICell; declare const createHorizontallyAlignedCell: (value: string | number | Date, alignment: HorizontalAlignment) => ICell; declare const createVerticallyAlignedCell: (value: string | number | Date, alignment: VerticalAlignment) => ICell; declare const createAlignedCell: (value: string | number | Date, horizontal: HorizontalAlignment, vertical: VerticalAlignment) => ICell; declare const createCenteredCell: (value: string | number | Date) => ICell; export { indexToVbIndex, indexToVbRelationIndex, indexToRowIndex, rowColumnToVbPosition, calculateExtant, SkipCell, skipCell, Equation, writeEquation, createBorder, createAllBorders, createTopBorder, createBottomBorder, createLeftBorder, createRightBorder, getBorderKey, getStyleKey, createStyledCell, createBorderedCell, dateToExcelSerial, createDateCell, createBorderedDateCell, createBackgroundCell, createForegroundCell, createColoredCell, createBackgroundDateCell, createHorizontallyAlignedCell, createVerticallyAlignedCell, createAlignedCell, createCenteredCell };