import { NdArray } from 'ndarray'; import { Shape } from './shapes/Shape'; import { ShapeColor } from './shapes/ShapeColor'; import { Options } from './config/Options'; /** * Render a raster image to a collection of shapes */ export declare class Shapesnap { target: NdArray; options?: Options | undefined; private readonly log; private readonly width; private readonly height; private readonly background; private readonly current; private readonly buffer; private readonly results; private score; constructor(target: NdArray, options?: Options | undefined); get image(): NdArray; get shapes(): ShapeColor[]; get svg(): string; get difference(): number; step(): Shapesnap; autoStep(callback?: (progress: string) => void): Shapesnap; addShape(shape: Shape, alpha: number): void; }