import { Minehut } from '../Minehut'; import { Server } from './Server'; import { CategoryListResponseItem, ServerCategory, ServerListServer } from './ServerResponse'; /** * The Minehut Server Manager */ export declare class ServerManager { client: Minehut; private _categories; constructor(client: Minehut); /** * Get a server by name or id * @param server the name or id of the server * @param byName whether to search by name or id * @returns {Promise} * @example const server = await minehut.servers.get('Minehut'); */ get(server: string, byName?: boolean): Promise; /** * Get a list of servers. * * @param query the query to search for * @param category the category to search for * @param limit the maximum number of servers to return * @returns {Promise} * @throws {Error} If the request fails * @example const servers = await minehut.servers.getOnlineServers({ query: 'skyblock', limit: 5 }); */ getOnlineServers({ query, category, limit }?: { query?: string; category?: ServerCategory; limit?: number; }): Promise; /** * Get the top 5 Minehut servers * @returns {Promise} * @throws {Error} If the request fails * @example const topServers = await minehut.servers.getTop5Servers(); */ getTop5Servers(): Promise; /** * Get a list of server categories * @param fromCache whether to get the categories from the cache * @returns {Promise} * @throws {Error} If the request fails * @example const categories = await minehut.servers.getServerCategories(); */ getServerCategories({ fromCache }?: { fromCache?: boolean; }): Promise; }