UNPKG

earthmc

Version:

An unofficial EarthMC library providing handy methods and extensive info.

35 lines 986 B
import * as endpoint from './utils/endpoint.js'; import Dynmap from './api/dynmap/Dynmap.js'; import Squaremap from './api/squaremap/Squaremap.js'; import MCAPI from "mojang-lib"; import { OAPIV3 } from './OAPI.js'; export type ServerName = `${string}.earthmc.net`; export declare function fetchServer(name?: ServerName): Promise<{ isOnline: boolean; players: { max: number; online: number; }; }>; export declare function getServerInfo(aurora?: { numOnline: number; }): Promise<{ aurora: { online: number; invisible: number; }; isOnline: boolean; players: { max: number; online: number; }; }>; export declare class OfficialAPI { static V3: typeof OAPIV3; } export declare const Aurora: Squaremap; export { Dynmap, Squaremap, MCAPI as MojangLib, endpoint }; export * from "./types/index.js"; export * from "./utils/errors.js"; export * from './utils/functions.js'; //# sourceMappingURL=main.d.ts.map