export declare class GridMatrix { protected width: number; protected matrix: Array>; protected lastUsedCoordinates: { x: number; y: number; }; protected currentRow: number; protected newRowTemplate: Array; constructor(width: number); protected addNextRow(): void; /** * Finds the first N cells within the row that are not taken, and * returns the index of the first of those cells, if theres is no N * free cells in the row, returns null. */ protected getFirstNFreeCellsInRow(y: number, n: number, onlyAfterIndex?: number): number | null; protected markCellsAsUsed(x: number, y: number, colSpan: number, rowSpan: number): void; protected findNextAvailableCellForElement(colSpan: number): { x: number; y: number; }; nextElement(colSpan: number, rowSpan: number): { x: number; y: number; }; }