-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.d.ts
43 lines (27 loc) · 866 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
declare module 'runeterra' {
export class DeckEncoder {
static decode(code: string): Card[];
static encode(cards: Card[]): string;
static encodeNofs(cards: Card[]): number[];
static encodeGroup(group: Card[]): number[];
static isValidDeck(cards: Card[]): boolean;
static groupByFactionAndSetSorted(cards: Card[]): Card[][];
static MAX_KNOWN_VERSION: number;
}
export class Card {
code: string;
count: number;
get set(): number;
get faction(): Faction;
get id(): number;
static from(set: string, faction: string, number: string, count: number): Card;
static fromCardString(cardString: number): Card;
}
export class Faction {
shortCode: string;
id: number;
static fromCode(code: string): Faction;
static fromID(id: number): Faction;
static FACTIONS: string[];
}
}