UNPKG

poe-api-manager

Version:
25 lines (24 loc) 969 B
import PoeNinja from "../../../../../AbstractClass/PoeNinja"; /** * Represents a module for retrieving currency data from the PoeNinja API. */ export declare class CurrencyModule extends PoeNinja { protected league: string; protected typeName: string; /** * Creates an instance of CurrencyModule. * @param league - The name of the league. * @param typeName - The name of the type. */ constructor(league: string, typeName: string); /** * Retrieves the quick currency data for the specified currency type. * @param currencyTypeName - The name of the currency. Defaults to "Divine Orb". * @returns A promise that resolves to an object containing the currency type name and its chaos equivalent value. * @throws If there is an error fetching the quick currency data. */ getQuickCurrency(currencyTypeName?: string): Promise<{ currencyTypeName: string; chaosEquivalent: number; }>; }