import Ratio from "./math/Ratio"; export interface Cell { value?: string; } export interface Row { cells: [Cell, ...Cell[]]; } export interface Part { title?: string; rows: [Row, ...Row[]]; } export interface Grid { id: string; baseCellSize: number; baseCellWidthRatio: Ratio; parts: [Part, ...Part[]]; } export interface Doc { grids: Grid[]; } export interface RowRef { partIndex: number; rowIndex: number; } export interface CellRef { partIndex: number; rowIndex: number; cellIndex: number; }