export type HitBox = { minX: number; minY: number; maxX: number; maxY: number; id: string; zIndex: number; }; /** Dynamic RBush of visual hit rects. load() replaces the current set. */ export declare class HitIndex { private tree; clear(): void; load(items: HitBox[]): void; insert(item: HitBox): void; remove(item: HitBox): void; search(minX: number, minY: number, maxX: number, maxY: number): HitBox[]; hitPoint(x: number, y: number): HitBox | null; }