UNPKG

ddnet

Version:

A typescript npm package for interacting with data from ddnet.org

35 lines (34 loc) 973 B
import { ServerStatus } from './ServerStatus.js'; /** * Represents DDNet server statuses. */ export declare class ServerListStatuses { #private; servers: ServerStatus[]; lastUpdatedTimestamp: number; /** * Create a new instance of {@link ServerListStatuses} from API data. * Not intended to be used, use {@link new ServerListStatuses.new} instead. */ private constructor(); /** * Fetch, parse and construct a new {@link ServerListStatuses} instance. */ static new(): Promise<ServerListStatuses>; /** * Parse an object using the {@link _Schema_status server status raw data zod schema}. */ private static parseObject; /** * Fetch the server status data from the API. */ private static makeRequest; /** * Populate the object with the raw server status data. */ private populate; /** * Refresh the server status data. */ refresh(): Promise<this>; }