zhonya
Version:
A simple and typed League of Legends API wrapper for Node.js
20 lines (19 loc) • 659 B
TypeScript
import { IZhonyaContext } from "../client";
import { SummonerDTO } from "../resources/summoner/types";
/**
* Class for accessing summoner-related functionalities
*/
export declare class SummonerAPI {
private puuidService;
private summonerService;
private context;
constructor(context: IZhonyaContext);
/**
* Find a summoner by name
* @param summonerName - Summoner name
* @returns Summoner data
* @throws {ZhonyaError} - If the client is not initialized or if the API key is missing
* @remarks **This method requires a valid API key to work**
*/
getByName(summonerName: string): Promise<SummonerDTO>;
}