export type AbstractSheet = { readonly sheets: ReadonlyArray; readonly styles?: Styles; }; export type Sheet = { readonly name: string; readonly cells: ReadonlyArray; readonly colInfo?: ColInfos; readonly rowInfo?: RowInfos; readonly direction?: "row" | "col"; }; export type ColInfos = ReadonlyArray; export type ColInfo = { readonly hidden?: boolean; readonly widthPixels?: number }; export type RowInfos = ReadonlyArray; export type RowInfo = { readonly hidden?: boolean; readonly heightPixels?: number }; export type Cells = ReadonlyArray; export type Cell = (NumberCell | TextCell | BoolCell | DateCell) & { readonly styles?: ReadonlyArray }; export type NumberCell = { readonly type: "number"; readonly value: string | number | boolean | Date }; export type TextCell = { readonly type: "string"; readonly value: string | number | boolean | Date }; export type BoolCell = { readonly type: "boolean"; readonly value: string | number | boolean | Date }; export type DateCell = { readonly type: "date"; readonly value: string | number | boolean | Date }; export type CellType = Cell["type"]; export type Styles = ReadonlyArray