/** * Fetches data from poe.ninja's PoE2 economy API. * @param league The game league for which to fetch data. * @param type The poe.ninja PoE2 type (e.g. "Currency", "UniqueWeapons"). * @param endpoint "exchange" reuses mergeExchangeData like the PoE1 exchange * endpoint (identical response shape); "item" is the PoE2 stash endpoint, * whose lines already carry everything needed, so no merge is required. * @returns A promise that resolves to an array of objects containing the fetched data. * @throws Throws an error if there's an issue with the API response or data fetching process. */ declare function fetchData2(league: string, type: string, endpoint: "exchange" | "item"): Promise; export default fetchData2;