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