import { GroupType } from './enums/group-type.enum'; import { LeaderboardType } from './enums/leaderboard-type.enum'; import { Platform } from './enums/platform.enum'; import { TimeWindow } from './enums/time-window.enum'; import { IPlayerStats } from './interfaces/converted-fortnite-types/converted-stats-item.interface'; import { IFortniteClientCredentials } from './interfaces/fortnite-client-credentials.interface'; import { IFortniteClientOptions } from './interfaces/fortnite-client-options.interface'; import { ICheckStatus } from './interfaces/fortnite-types/check-status.interface'; import { IGameNews } from './interfaces/fortnite-types/game-news.interface'; import { ILeaderboards } from './interfaces/fortnite-types/leaderboards.interface'; import { ILookup } from './interfaces/fortnite-types/lookup.interface'; import { IStatsItem } from './interfaces/fortnite-types/stats-item.interface'; import { IStore } from './interfaces/fortnite-types/store.interface'; /** * Fortnite client */ export declare class FortniteClient { private apiRequest; private credentials; private launcherAccessToken; private clientAccessToken; /** * Creates a new fortnite client instance. * @param credentials The account's credentials which shall be used for the REST requests. * @param options Library specific options (such as a response timeout until it throws an exception). */ constructor(credentials: IFortniteClientCredentials, options?: IFortniteClientOptions); static CHECK_STATUS(): Promise; static GET_GAME_NEWS(locale?: string): Promise; login(): Promise; getBattleRoyaleStatsById(userId: string, timeWindow?: TimeWindow, convertJSONOutput?: true): Promise; getBattleRoyaleStatsById(userId: string, timeWindow?: TimeWindow, convertJSONOutput?: false): Promise; getLeaderboards(leaderboardType: LeaderboardType, platform: Platform, groupType: GroupType, timeWindow?: TimeWindow, pageNumber?: number, limit?: number): Promise; getStore(locale?: string): Promise; /** * Checks if a player with the given name exists. If it exists, it will return the playerId * @param username Full text playername (e. g. 'NinjasHyper') */ lookup(username: string): Promise; /** * Get the player name by accountId in bulk. * Returns a Map with the accountId as key and the lookup object as value * @param accountIds AccountIDs which shall be looked up */ lookupByIds(accountIds: string[]): Promise>; /** * Updates the default auth header for client requests and sets the property * @param token The new client access token */ private updateClientAccessToken; private onTokenExpired; /** * Required to send right after successful login, when logging in frequently */ private killOtherSessions; private refreshToken; private requestOAuthToken; private requestOAuthExchange; /** * Request Login Token after (logging in with password) */ private requestAccessToken; }