import { ServerManager } from './server/ServerManager'; import { IconManager } from './icon/IconManager'; import { ResourcePackResponse } from './stats/ResourcePackResponse'; import { PlayerManager } from './player/PlayerManager'; import { MinehutStatus } from './utils/functions'; import { Rank } from './stats/RankResponse'; import { StoryTellerManager } from './storyteller/StoryTellerManager'; /** * The Minehut API client * @example * const minehut = new Minehut(); * const devMinehut = new Minehut({ dev: true }); */ export declare class Minehut { /** * The Minehut Icon Manager * @type {IconManager} */ icons: IconManager; /** * The Minehut Server Manager * @type {ServerManager} */ servers: ServerManager; /** * The Minehut Player Manager * @type {PlayerManager} */ players: PlayerManager; /** * The Minehut StoryTeller Manager * @type {StoryTellerManager} */ storyTeller: StoryTellerManager; /** * Whether the client is in development mode. * When in development mode, the client will use the Minehut Development API. * @type {boolean} */ dev: boolean; /** * The base URL of the Minehut API * @type {string} */ API_BASE: string; constructor(settings?: MinehutSettings); /** * Get the simple stats of the Minehut network * @returns {Promise} * @throws {Error} If the request fails * @example const stats = await minehut.getSimpleStats(); */ getSimpleStats(): Promise<{ serverCount: number; serverMax: number; playerCount: number; ramCount: number; ramMax: number; freeServerLimit: number; paidServerLimit: number; }>; /** * Get the player distribution of the Minehut network * @returns {Promise} * @throws {Error} If the request fails * @example const playerDistribution = await minehut.getPlayerDistribution(); */ getPlayerDistribution(): Promise<{ bedrock: { total: number; lobby: number; playerServer: number; }; java: { total: number; lobby: number; playerServer: number; }; }>; /** * Get the homepage stats of the Minehut network * @returns {Promise} * @throws {Error} If the request fails * @example const homePageStats = await minehut.getHomePageStats(); */ getHomePageStats(): Promise<{ serverCount: number; userCount: number; }>; /** * Get the resource pack of the Minehut network * @returns {Promise} * @throws {Error} If the request fails * @example const resourcePack = await minehut.getResourcePack(); */ getResourcePack(): Promise; /** * Get the status of the Minehut network * @returns {Promise} * @example const status = await minehut.getMinehutStatus(); */ getMinehutStatus(): Promise; /** * Get the ranks of the Minehut network * @returns {Promise} * @throws {Error} If the request fails * @example const ranks = await minehut.getRanks(); */ getRanks(): Promise; } export interface MinehutSettings { dev?: boolean; }