import { Locales, Resource } from "@blizzard-api/core"; //#region src/cards/types.d.ts interface BlizzardCardSearchParameters extends BaseSearchParameters { attack?: string; defaultMercenary?: string; health?: string; mercenaryId?: string; } interface CardSearchParameters extends BaseSearchParameters { attack?: Array | number; defaultMercenary?: Array | number; health?: Array | number; mercenaryId?: Array | number; } interface CardSearchResponse { cardCount: number; cards: Array; page: number; pageCount: number; } interface FetchOneCardResponse { artistName: string; attack: number; cardSetId: number; cardTypeId: number; classId: number; collectible: number; cropImage: string; flavorText: Record | string; health: number; id: number; image: Record | string; imageGold: Record | string; isZilliaxCosmeticModule: boolean; isZilliaxFunctionalModule: boolean; keywordIds: Array; manaCost: number; multiClassIds: Array; name: Record | string; rarityId: number; slug: string; text: Record | string; } type GameMode = 'arena' | 'battlegrounds' | 'classic' | 'constructed' | 'duels' | 'mercenaries' | 'standard'; interface BaseSearchParameters { gameMode?: GameMode; locale?: Locales; mercenaryRole?: string; minionType?: string; page?: number; pageSize?: number; sort?: 'attack:asc' | 'attack:desc' | 'health:asc' | 'health:desc' | 'name:asc' | 'name:desc' | 'tier:asc' | 'tier:desc'; textFilter?: string; tier?: 1 | 2 | 3 | 4 | 5 | 6 | 'hero'; } interface Card { artistName: null | string; attack: number; cardSetId: number; cardTypeId: number; classId: null | number; collectible: number; cropImage: null | string; flavorText: string; health: number; id: number; image: string; imageGold: string; isZilliaxCosmeticModule: boolean; isZilliaxFunctionalModule: boolean; manaCost: number; mercenaryHero: MercenaryHero; minionTypeId: number; multiClassIds: Array; multiTypeIds?: Array; name: string; rarityId: number; slug: string; text: string; } interface MercenaryHero { collectible: number; craftingCost: number; default: number; faction: null | number; mercId: number; rarity: number; roleId: number; statsByLevel: Record; } interface StatsByLevel { attack: number; health: number; } //#endregion //#region src/cards/index.d.ts /** * Returns a list of cards based on the search parameters provided. * @param options The options for fetching cards. See {@link CardSearchParameters}. * @returns The card search resource. See {@link CardSearchResponse}. */ declare function cardSearch(options: CardSearchParameters): Resource; /** * Returns a single card based on the ID provided. * @param id The card ID * @param options The options for fetching a card. * @param options.gameMode The game mode to use for fetching the card (optional). * @param options.locale The locale to use for fetching the card (optional). * @returns The card resource. See {@link FetchOneCardResponse}. */ declare function fetchOneCard(id: string, options?: { gameMode?: GameMode; locale?: Locales; }): Resource; //#endregion export { CardSearchResponse as a, CardSearchParameters as i, fetchOneCard as n, FetchOneCardResponse as o, BlizzardCardSearchParameters as r, GameMode as s, cardSearch as t }; //# sourceMappingURL=index-DbPHKsXS.d.ts.map