import { AABB2 } from './AABB2.js';
import type { IMap2DRenderable } from './IMap2DRenderable.js';
export type Map2DSpatialHashGridKeyType = string;
export declare class Map2DSpatialHashGrid<Renderable extends IMap2DRenderable> {
    #private;
    static getKey(x: number, y: number): Map2DSpatialHashGridKeyType;
    constructor(tileWidth?: number, tileHeight?: number, xOffset?: number, yOffset?: number);
    add(...renderables: Array<Renderable>): Map2DSpatialHashGrid<Renderable>;
    remove(...renderables: Array<Renderable>): Map2DSpatialHashGrid<Renderable>;
    findWithin(aabb: AABB2): Set<Renderable> | undefined;
    getTiles(tileX: number, tileY: number, width?: number, height?: number): Set<Renderable> | undefined;
    getTile(tileX: number, tileY: number): Set<Renderable> | undefined;
}
//# sourceMappingURL=Map2DSpatialHashGrid.d.ts.map