import { Point } from './canvas-util'; /** * A two dimensional array of elements of the given class that can extend infinitely in any direction, both positive and negative. * @private */ export declare class Grid { #private; /** * Get the minimum x coordinate among the elements in the grid. */ minX(): number; /** * Get the maximum x coordinate among the elements in the grid. */ maxX(): number; /** * Get the minimum y coordinate among the elements in the grid. */ minY(): number; /** * Get the maximum y coordinate among the elements in the grid. */ maxY(): number; /** * Get the total extension of the grid along the x axis. */ width(): number; /** * Get the total extension of the grid along the y axis. */ height(): number; /** * Add a new column at the start of the x axis. */ addColumnLeft(): void; /** * Add a new column at the end of the x axis. */ addColumnRight(): void; /** * Add a new row at the start of the y axis. */ addRowTop(): void; /** * Add a new row at the end of the y axis. */ addRowBottom(): void; /** * Get the element at the given coordinates or undefined if there is no element at the given coordinates. */ get(coords: Point): T | undefined; /** * Set the element at the given coordinates to the given element. */ set(coords: Point, value: T | undefined): void; /** * Get the closest coordinates to the given coordinates that are not set to an element. */ getClosestEmptyCoordinate(coords: Point): Point; }