import IPoeNinja from "../../../Interfaces/IPoeNinja"; /** * Represents a poe.ninja PoE2 submodule. Unlike PoE1, there's a single * generic leaf here - no PoE2 type needs behaviour beyond getData(). * @class * @implements {IPoeNinja} */ export default class PoeNinja2 implements IPoeNinja { protected readonly league: string; protected readonly type: string; protected readonly endpoint: "exchange" | "item"; /** * Creates an instance of PoeNinja2. * @param {string} league - The league name. * @param {string} type - The poe.ninja PoE2 type (e.g. "Currency", "UniqueWeapons"). * @param {"exchange" | "item"} endpoint - Which PoE2 economy endpoint to hit. */ constructor(league: string, type: string, endpoint: "exchange" | "item"); /** * Retrieves data from the poe.ninja PoE2 API. * @param {string[]} requestedProperties - Optional array of properties to include in the retrieved data. * @returns {Promise} A promise that resolves to an array of objects containing the retrieved data. * @throws {Error} If there is an error retrieving the data. */ getData(requestedProperties?: string[]): Promise; }