earthmc
Version:
An unofficial EarthMC library providing handy methods and extensive info.
14 lines • 715 B
TypeScript
import type Squaremap from "./Squaremap.js";
import type { Resident } from "../../types/index.js";
import type { EntityApi } from "../../helpers/EntityApi.js";
import { type NotFoundError } from "../../utils/errors.js";
declare class Residents implements EntityApi<Resident | NotFoundError> {
#private;
get map(): Squaremap;
constructor(map: Squaremap);
readonly fromTown: (townName: string) => Promise<Resident | NotFoundError | (Resident | NotFoundError)[]>;
readonly get: (...names: string[]) => Promise<Resident | NotFoundError | (Resident | NotFoundError)[]>;
readonly all: () => Promise<Resident[]>;
}
export { Residents, Residents as default };
//# sourceMappingURL=Residents.d.ts.map