import Card, { CardConstantMap } from "./Enum/Card.js"; import ClassName from "./Enum/ClassName.js"; import { ClassAffinityMap, ClassAttackRateMap } from "./Enum/ClassName.js"; import Cond from "./Enum/Cond.js"; import Language from "./Enum/Language.js"; import Region from "./Enum/Region.js"; import { AiActNum, AiActTarget, AiActType, AiCollection, AiCond, AiTiming, AiType } from "./Schema/Ai.js"; import { Attribute, AttributeAffinityMap } from "./Schema/Attribute.js"; import { BattleMasterImage } from "./Schema/BattleMaster.js"; import { BgmEntity } from "./Schema/Bgm.js"; import { BasicBuff, Buff, BuffConstantMap, BuffSearchOptions, BuffType, ClassRelationOverwriteType } from "./Schema/Buff.js"; import { Change } from "./Schema/Change.js"; import { ClassBoard } from "./Schema/ClassBoard.js"; import { CommandCode, CommandCodeBasic } from "./Schema/CommandCode.js"; import { CommonRelease } from "./Schema/CommonRelease.js"; import { Constants } from "./Schema/Constant.js"; import { ConstantStrs } from "./Schema/ConstantStr.js"; import { CraftEssence, CraftEssenceBasic } from "./Schema/CraftEssence.js"; import { Cv } from "./Schema/Cv.js"; import { Enemy } from "./Schema/Enemy.js"; import { EnemyMaster } from "./Schema/EnemyMaster.js"; import { EntityBasic, EntityFlag, EntitySearchOptions, EntityType, Gender } from "./Schema/Entity.js"; import { Event, EventAlloutBattle, EventBasic, EventType } from "./Schema/Event.js"; import { BasicFunc, Func, FuncSearchOptions, FuncTargetTeam, FuncTargetType, FuncType } from "./Schema/Func.js"; import { Gacha } from "./Schema/Gacha.js"; import { GiftType } from "./Schema/Gift.js"; import { Illustrator } from "./Schema/Illustrator.js"; import { Info } from "./Schema/Info.js"; import { Item, ItemBackgroundType, ItemSearchOptions, ItemType } from "./Schema/Item.js"; import { MasterLevelInfoMap } from "./Schema/Master.js"; import { MasterMission } from "./Schema/MasterMission.js"; import { DetailCondLinkType, MissionType, ProgressType, RewardType } from "./Schema/Mission.js"; import { MysticCode, MysticCodeBasic } from "./Schema/MysticCode.js"; import { NPSearchOptions, NoblePhantasm, NoblePhantasmBasic } from "./Schema/NoblePhantasm.js"; import { ProfileVoiceType, VoiceCondType } from "./Schema/Profile.js"; import { Quest, QuestBasic, QuestConsumeType, QuestPhase, QuestPhaseBasic, QuestPhaseSearchOptions, QuestType } from "./Schema/Quest.js"; import { Script, ScriptSearchOptions, ScriptSearchResult, SvtScript } from "./Schema/Script.js"; import { GrailCostInfoMap, Servant, ServantBasic, ServantWithLore } from "./Schema/Servant.js"; import { PayType, PurchaseType, Shop, ShopSearchOptions, ShopType } from "./Schema/Shop.js"; import { Skill, SkillBasic, SkillSearchOptions, SkillType } from "./Schema/Skill.js"; import { Trait } from "./Schema/Trait.js"; import { War, WarBasic, WarStartType } from "./Schema/War.js"; export declare enum ReverseData { BASIC = "basic", NICE = "nice" } export declare enum ReverseDepth { FUNCTION = "function", SKILL_NP = "skillNp", SERVANT = "servant" } export type ReverseOptions = { reverse?: boolean; reverseData?: ReverseData; reverseDepth?: ReverseDepth; }; export type DataType = "raw" | "nice" | "basic"; export interface EnumList { NiceSvtType: { [key: string]: EntityType; }; NiceSvtFlag: { [key: string]: EntityFlag; }; NiceSkillType: { [key: string]: SkillType; }; NiceFuncType: { [key: string]: FuncType; }; FuncApplyTarget: { [key: string]: FuncTargetTeam; }; NiceFuncTargetType: { [key: string]: FuncTargetType; }; NiceBuffType: { [key: string]: BuffType; }; NiceClassRelationOverwriteType: { [key: string]: ClassRelationOverwriteType; }; NiceItemType: { [key: string]: ItemType; }; NiceItemBGType: { [key: string]: ItemBackgroundType; }; NiceCardType: { [key: string]: Card; }; Gender: { [key: string]: Gender; }; Attribute: { [key: string]: Attribute; }; SvtClass: { [key: string]: ClassName; }; NiceStatusRank: { [key: string]: string; }; NiceCondType: { [key: string]: Cond; }; NiceVoiceCondType: { [key: string]: VoiceCondType; }; NiceSvtVoiceType: { [key: string]: ProfileVoiceType; }; NiceQuestType: { [key: string]: QuestType; }; NiceConsumeType: { [key: string]: QuestConsumeType; }; NiceEventType: { [key: string]: EventType; }; Trait: { [key: string]: string; }; NiceWarStartType: { [key: string]: WarStartType; }; NiceGiftType: { [key: string]: GiftType; }; NicePayType: { [key: string]: PayType; }; NicePurchaseType: { [key: string]: PurchaseType; }; NiceShopType: { [key: string]: ShopType; }; NiceAiActType: { [key: string]: AiActType; }; NiceAiActTarget: { [key: string]: AiActTarget; }; NiceAiActNum: { [key: string]: AiActNum; }; NiceAiCond: { [key: string]: AiCond; }; AiTiming: { [key: string]: AiTiming; }; NiceMissionType: { [key: string]: MissionType; }; NiceMissionRewardType: { [key: string]: RewardType; }; NiceMissionProgressType: { [key: string]: ProgressType; }; NiceDetailMissionCondLinkType: { [key: string]: DetailCondLinkType; }; } interface ApiConnectorProperties { host?: string; region?: Region; language?: Language; } interface QueryOptions { [key: string]: string | string[] | number | number[] | boolean | undefined; } declare class ApiConnector { private host; private region; private language; private cache; constructor(props?: ApiConnectorProperties); getURLSearchParams(options: QueryOptions): URLSearchParams; getReverseParams(reverse?: ReverseOptions): URLSearchParams; getQueryString(query: URLSearchParams): string; showJPdataWithEnglishText(): boolean; getPath(dataType: DataType, entity: string, id: string | number, query: QueryOptions): string; getUrl(dataType: DataType, entity: string, id: string | number, query: QueryOptions): string; buff(id: number, reverse?: ReverseOptions, cacheDuration?: number): Promise; buffBasic(id: number, reverse?: ReverseOptions, cacheDuration?: number): Promise; changelog(): Promise; questEnemyChangelog(): Promise; battleMasterImage(id: number, cacheDuration?: number): Promise; bgm(id: number, cacheDuration?: number, fileName?: string): Promise; bgmList(cacheDuration?: number): Promise; commandCode(id: number, cacheDuration?: number): Promise; commandCodeBasic(id: number, cacheDuration?: number): Promise; commandCodeList(cacheDuration?: number): Promise; craftEssence(id: number, lore?: boolean, cacheDuration?: number): Promise; craftEssenceBasic(id: number, cacheDuration?: number): Promise; craftEssenceList(cacheDuration?: number): Promise; enemy(id: number, lore?: boolean, cacheDuration?: number): Promise; masterMission(id: number, cacheDuration?: number): Promise; masterMissionList(cacheDuration?: number): Promise; event(id: number, cacheDuration?: number): Promise; eventBasic(id: number, cacheDuration?: number): Promise; eventList(cacheDuration?: number): Promise; war(id: number, cacheDuration?: number): Promise; warBasic(id: number, cacheDuration?: number): Promise; warList(cacheDuration?: number): Promise; warListNice(cacheDuration?: number): Promise; func(id: number, reverse?: ReverseOptions, cacheDuration?: number): Promise; funcBasic(id: number, reverse?: ReverseOptions, cacheDuration?: number): Promise; item(id: number, cacheDuration?: number): Promise; itemList(cacheDuration?: number): Promise; illustratorList(cacheDuration?: number): Promise; cvList(cacheDuration?: number): Promise; mysticCode(id: number, cacheDuration?: number): Promise; mysticCodeBasic(id: number, cacheDuration?: number): Promise; mysticCodeList(cacheDuration?: number): Promise; noblePhantasm(id: number, reverse?: ReverseOptions, cacheDuration?: number): Promise; noblePhantasmBasic(id: number, reverse?: ReverseOptions, cacheDuration?: number): Promise; quest(id: number, cacheDuration?: number): Promise; questPhase(id: number, phase: number, hash?: string, cacheDuration?: number): Promise; questBasic(id: number, cacheDuration?: number): Promise; questPhaseBasic(id: number, phase: number, cacheDuration?: number): Promise; script(id: string, cacheDuration?: number): Promise