///
import { PixelStatus } from './pixel';
export declare class PixelMap {
readonly width: number;
readonly height: number;
private pixels;
/**
* Create a new instance of the canvas.
* @param width
* @param height
*/
constructor(width: number, height: number);
/**
* Get the status of a pixel.
* @param x
* @param y
*/
get(x: number, y: number): PixelStatus;
/**
* Get all pixels.
*/
getAll(): PixelStatus[][];
/**
* Set an individual pixel.
* @param x
* @param y
* @param status
*/
set(x: number, y: number, status: PixelStatus): void;
/**
* Clear the map.
*/
clear(): void;
/**
* Fill the map with pixels.
* @param status
*/
fill(status: PixelStatus): void;
/**
* Draw a line using Bresenham's line algorithm.
* @param x0
* @param y0
* @param x1
* @param y1
* @param status
*/
line(x0: number, y0: number, x1: number, y1: number, status?: PixelStatus): void;
/**
* Draw a rectangle.
* @param x
* @param y
* @param width
* @param height
* @param outline
* @param status
*/
rectangle(x: number, y: number, width: number, height: number, outline?: boolean, status?: PixelStatus): void;
/**
* Draw text.
* @param x
* @param y
* @param content
* @param size
* @param spacing
* @param wrap
*/
text(x: number, y: number, content: string, size?: number, spacing?: number, wrap?: boolean): void;
/**
* Copy a pixel map onto this pixel map.
* @param from
* @param x
* @param y
*/
copy(from: PixelMap, x?: number, y?: number): void;
/**
* Copy an image onto the pixel map.
* @param path
* @param x
* @param y
* @param maxWidth
* @param maxHeight
*/
image(path: string | Buffer, x?: number, y?: number, maxWidth?: number, maxHeight?: number): Promise;
/**
* Format the Pixel map as an array of all pixels.
*/
toArray(): PixelStatus[];
/**
* Format the Pixel map as a string.
*/
toString(): string;
}