import { Context } from "../context/context";
import { Object3D, Mesh, Matrix3 } from "three";
import { Heatmap, HeatmapData, DataPoint } from '@mars3d/heatmap.js';
type V = 'value';
type X = 'x';
type Y = 'y';
export type HeatmapDataParam = HeatmapData<DataPoint<V, X, Y>>;
export declare class HeatmapElement extends Object3D {
    context: Context;
    heatmap?: Heatmap<V, X, Y>;
    div: HTMLDivElement;
    plane?: Mesh;
    constructor(context: Context);
    clearHeatmap(): void;
    loadData(data: HeatmapDataParam): void;
    initPlane(width: number, height: number): void;
    getTransMatrix({ x, y }: {
        x: number;
        y: number;
    }): Matrix3;
    /**
     * 所有点的坐标减去左上角从00点开始画canvas
     * @param data
     * @param leftTop
     * @returns
     */
    transformData(data: HeatmapDataParam, leftTop: {
        x: number;
        y: number;
    }): HeatmapDataParam;
    getBox(data: HeatmapDataParam): {
        width: number;
        height: number;
        leftTop: {
            x: number;
            y: number;
        };
        center: import("@turf/turf").Position;
    };
    dispose(): void;
}
export {};
