import { __name } from "../../_virtual/_rolldown/runtime.js"; import { Vector2, Vector3 } from "@overextended/core/vector"; import { Cylinder, Prism, Sphere } from "@overextended/core/geometry"; //#region common/zones/index.d.ts type Shapes = Prism | Sphere | Cylinder; interface Zone { id: string; shape: Shapes; x: number; y: number; width: number; height: number; inside?: () => void; onEnter?: () => void; onExit?: () => void; [key: string]: any; } declare class Zone { static Prism(...args: ConstructorParameters): Zone; static Cuboid(...args: Parameters<(typeof Prism)['createCuboid']>): Zone; static Sphere(...args: ConstructorParameters): Zone; /** Removes a zone with the given id from the registry. */ static delete(id: string): void; /** Returns a set of all zones. */ static getAll(): Map; /** Returns a set of all zones the player is currently standing inside. Always empty on the server. */ static getCurrent(): Set; /** Returns a set of all zones near the given point, or the player if undefined. */ static getNearby(point?: Vector2 | Vector3): ReadonlySet; /** Evaluates if a zone with the given id exists. */ static has(id: string): boolean; shouldDraw: boolean; private constructor(); contains(point: Vector3): boolean; draw(red?: number, green?: number, blue?: number, alpha?: number): void; /** Removes the zone from the registry. */ remove(): void; } //#endregion export { Zone }; //# sourceMappingURL=index.d.ts.map