import { Client } from './Client'; import { MCAccount } from './Types'; /** * Uses a minecraft access token with a username and a uuid and converts it to a Lunar Client access token that can be used to connect to the asset websocket (one time use) * @param access_token The Minecraft Access Token * @param username The Minecraft Account Username * @param uuid The Minecraft Account UUID (with or without dashes) * @returns The One-Time-Use Lunar Client Access Token */ export declare function lunarAuth(access_token: string, username: string, uuid: string, { WebSocket, fetch }: Client): Promise; /** * Uses a Microsoft Access Token to login to Minecraft * @param access_token The Microsoft Access Token * @returns The Minecraft Account Data (Username, UUID, and Access Token) */ export declare function loginToMinecraft(access_token: string, client: Client): Promise; export declare const parseUUIDWithDashes: (uuid: string) => string; export declare const parseUUIDWithoutDashes: (uuid: string) => string; /** * Parses time to human-readable string * @param milliseconds The time in milliseconds * @param excludeMS Whether to exclude the leftover milliseconds from the final result (only excludes if there was at least 1 second) * @returns The human-readable string */ export declare function parseTime(milliseconds: number, excludeMS?: boolean): string; /** * Fetch info about a User's Account * @param token The User's Mojang Access Token * @returns The User Profile */ export declare function fetchUserInfo(token: string, { fetch }: Client): Promise; /** Git Commit used in Connection, must match ModStates */ export declare const gitCommit = "78f38fc2881c230532a91fcf8351807e0a9592fa"; /** Mod States used in KeepAlive Packets */ export declare const ModStates: { scrollable_tooltips: boolean; tntCountdown: boolean; titleMod: boolean; keystrokes: boolean; cooldowns: boolean; glint_colorizer: boolean; armorstatus: boolean; chunkborders: boolean; textHotKey: boolean; playtime: boolean; resource_display: boolean; nametag: boolean; skinLayers3D: boolean; items2d: boolean; bossbar: boolean; item_counter: boolean; tab: boolean; hypixel_bedwars: boolean; hypixel_mod: boolean; uhc_overlay: boolean; colorsaturation: boolean; teamview: boolean; pvpInfo: boolean; scoreboard: boolean; pack_organizer: boolean; saturation_mod: boolean; snaplook: boolean; 'mumble-link': boolean; neu: boolean; momentum_mod: boolean; skyblockAddons: boolean; itemTrackerChild: boolean; cps: boolean; combo: boolean; clock: boolean; lighting: boolean; hitbox: boolean; hitColor: boolean; waila: boolean; one_seven_visuals: boolean; menu_blur: boolean; quickplay: boolean; potioneffects: boolean; fov_mod: boolean; motionBlur: boolean; daycounter: boolean; memory: boolean; ping: boolean; nickHider: boolean; range: boolean; screenshot: boolean; waypoints: boolean; directionhud: boolean; freelook: boolean; hurt_cam: boolean; replaymod: boolean; coords: boolean; sound_changer: boolean; fps: boolean; zoom: boolean; itemPhysic: boolean; worldedit_cui: boolean; weather_changer: boolean; crosshair: boolean; block_outline: boolean; chat: boolean; shinyPots: boolean; toggleSneak: boolean; time_changer: boolean; fog_mod: boolean; particleMod: boolean; stopwatch: boolean; serverAddressMod: boolean; };