UNPKG

earthmc

Version:

An unofficial EarthMC library providing handy methods and extensive info.

11 lines 603 B
import type { StrictPoint2D, Point2D, TownBounds } from ".././types/index.js"; type LocOrNation = Partial<Point2D & { capital: Point2D; }>; export declare const getNearest: <T extends LocOrNation>(location: StrictPoint2D, radius: StrictPoint2D, arr?: T[], fallback?: () => Promise<T[]>, disallowCenter?: boolean) => Promise<T[]>; export declare const checkWithinBounds: (location: Point2D, bounds: TownBounds) => boolean; export declare const checkWithinTown: <T extends { bounds: TownBounds; }>(location: Point2D, towns: T[]) => Promise<boolean>; export {}; //# sourceMappingURL=common.d.ts.map