UNPKG

onelnchr-mc-loaders

Version:
37 lines (36 loc) 935 B
import type { LaunchConfig } from '..'; export declare const id = "vanilla"; export declare const url = "https://www.minecraft.net/"; export type VersionManifest = { latest: { release: string; snapshot: string; }; versions: { id: string; type: 'snapshot' | 'release'; url: string; time: string; releaseTime: string; sha1: string; complianceLevel: number; }[]; }; export declare function getVersionManifest(): Promise<VersionManifest>; /** * Downloads the latest version json and returns a partial MCLC config */ export declare function getMCLCLaunchConfig(config: LaunchConfig): Promise<{ root: string; version: { number: string; type: string; }; }>; /** * Returns all game versions a loader supports */ export declare function listSupportedGameVersions(): Promise<{ version: string; stable: boolean; }[]>;