/**
 * A field representing the nearest generator from each point.
 */
export class b2VoronoiDiagram {
    constructor(generatorCapacity: any);
    m_generatorCapacity: any;
    m_generatorCount: number;
    m_countX: number;
    m_countY: number;
    m_diagram: any[];
    m_generatorBuffer: b2VoronoiDiagram_Generator[];
    /**
     * Add a generator.
     *
     * @param center the position of the generator.
     * @param tag a tag used to identify the generator in callback functions.
     * @param necessary whether to callback for nodes associated with the generator.
     */
    AddGenerator(center: any, tag: any, necessary: any): void;
    /**
     * Generate the Voronoi diagram. It is rasterized with a given
     * interval in the same range as the necessary generators exist.
     *
     * @param radius the interval of the diagram.
     * @param margin margin for which the range of the diagram is extended.
     */
    Generate(radius: any, margin: any): void;
    /**
     * Enumerate all nodes that contain at least one necessary
     * generator.
     */
    GetNodes(callback: any): void;
}
export class b2VoronoiDiagram_Generator {
    center: b2Vec2;
    tag: number;
    necessary: boolean;
}
export class b2VoronoiDiagram_Task {
    constructor(x: any, y: any, i: any, g: any);
    m_x: any;
    m_y: any;
    m_i: any;
    m_generator: any;
}
import { b2Vec2 } from "../common/b2_math.js";
