import { Client } from '../../client'; import { IGuild, Session } from '../index'; import { IPlayer, PlayerResponse, SocialMedia } from './player.types'; import { Stats } from './stats.handler'; /** * Player Leveling system * @see https://github.com/Plancke/hypixel-php/blob/master/src/util/Leveling.php * @class */ export declare class PlayerLeveling { private static readonly base; private static readonly growth; private static readonly half_growth; private static readonly reverse_prefix; private static readonly reverse_const; private static readonly growth_divides; /** * Get exact network level by provided experience * * @param exp * The network experience * @return The exact network level (float) */ static getExactLevel(exp: number): number; /** * Get network level by provided experience * * @param exp * The network experience * @returns The network level */ static getLevel(exp: number): number; /** * Get percentage to the next level * * @param exp * The network experience * @returns The percentage to the next level */ static getPercentageToNextLevel(exp: number): number; /** * Get the experience needed to reach provided level * * @param level * The network level * @returns The experience needed to reach provided level */ static getTotalExpToLevel(level: number): number; /** * From hypixel-php: `Helper method that may only be called by full levels and has the same functionality as getTotalExpToLevel() * but doesn't support progress and returns wrong values for progress due to perfect curve shape.` * * @param level * The network level * @returns The experience needed to reach the full level */ static getTotalExpToFullLevel(level: number): number; } /** * The Player class * This class provides various getters for player data * @class */ export declare class Player { #private; /** * Constructs the Player class by UUID * * @param client * The Hypicle Client * @param uuid * The UUID of a player */ constructor(client: Client, uuid: string); /** * Get the player data and cache it to a variable * * @returns The player data */ getPlayerData(): Promise; /** * Get the player */ get(): Promise; /** * Get the UUID of the player */ getUUID(): Promise; /** * Get the status of the player */ getStatus(): Promise; /** * Get the karma of the player */ getKarma(): Promise; /** * Get the network experience of the player */ getNetworkExp(): Promise; /** * Get the network level of the player */ getLevel(): Promise; /** * Get exact network level of the player */ getExactLevel(): Promise; /** * Get the guild membership of the player or null */ getGuild(): Promise; /** * Check if the player is in the staff team */ isStaff(): Promise; /** * Get the highest rank of the player */ getHighestRank(): Promise; /** * Get the rank plus color */ getPlusColor(): Promise; /** * Get the display name of the player */ getName(): Promise; /** * Get recently played games by the player */ getRecentGameType(): Promise; /** * Get player connected social media */ getSocialMedia(): Promise; /** * Get the player {@link Stats} */ getStats(): Stats; } //# sourceMappingURL=player.handler.d.ts.map