osrs-json-hiscores 2.12.0 → 2.12.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,235 +1,235 @@
1
- "use strict";
2
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
3
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
4
- to[j] = from[i];
5
- return to;
6
- };
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.INVALID_FORMAT_ERROR = exports.FORMATTED_RIFTS_CLOSED = exports.FORMATTED_LEAGUE_POINTS = exports.FORMATTED_SOUL_WARS = exports.FORMATTED_PVP_ARENA = exports.FORMATTED_LMS = exports.FORMATTED_BH_NAMES = exports.FORMATTED_CLUE_NAMES = exports.FORMATTED_SKILL_NAMES = exports.FORMATTED_BOSS_NAMES = exports.ACTIVITIES = exports.BOSSES = exports.GAMEMODES = exports.BH_MODES = exports.CLUES = exports.SKILLS = exports.GAMEMODE_URL = exports.SCORES_URL = exports.STATS_URL = exports.BASE_URL = void 0;
9
- exports.BASE_URL = 'https://secure.runescape.com/m=hiscore_oldschool';
10
- exports.STATS_URL = 'index_lite.ws?player=';
11
- exports.SCORES_URL = 'overall.ws?';
12
- exports.GAMEMODE_URL = {
13
- main: exports.BASE_URL + "/",
14
- ironman: exports.BASE_URL + "_ironman/",
15
- hardcore: exports.BASE_URL + "_hardcore_ironman/",
16
- ultimate: exports.BASE_URL + "_ultimate/",
17
- deadman: exports.BASE_URL + "_deadman/",
18
- seasonal: exports.BASE_URL + "_seasonal/",
19
- tournament: exports.BASE_URL + "_tournament/",
20
- skiller: exports.BASE_URL + "_skiller/",
21
- oneDefence: exports.BASE_URL + "_skiller_defence/",
22
- freshStart: exports.BASE_URL + "_fresh_start/"
23
- };
24
- exports.SKILLS = [
25
- 'overall',
26
- 'attack',
27
- 'defence',
28
- 'strength',
29
- 'hitpoints',
30
- 'ranged',
31
- 'prayer',
32
- 'magic',
33
- 'cooking',
34
- 'woodcutting',
35
- 'fletching',
36
- 'fishing',
37
- 'firemaking',
38
- 'crafting',
39
- 'smithing',
40
- 'mining',
41
- 'herblore',
42
- 'agility',
43
- 'thieving',
44
- 'slayer',
45
- 'farming',
46
- 'runecraft',
47
- 'hunter',
48
- 'construction'
49
- ];
50
- exports.CLUES = [
51
- 'all',
52
- 'beginner',
53
- 'easy',
54
- 'medium',
55
- 'hard',
56
- 'elite',
57
- 'master'
58
- ];
59
- exports.BH_MODES = ['hunter', 'rogue'];
60
- exports.GAMEMODES = [
61
- 'main',
62
- 'ironman',
63
- 'hardcore',
64
- 'ultimate',
65
- 'deadman',
66
- 'seasonal',
67
- 'tournament'
68
- ];
69
- exports.BOSSES = [
70
- 'abyssalSire',
71
- 'alchemicalHydra',
72
- 'barrows',
73
- 'bryophyta',
74
- 'callisto',
75
- 'cerberus',
76
- 'chambersOfXeric',
77
- 'chambersOfXericChallengeMode',
78
- 'chaosElemental',
79
- 'chaosFanatic',
80
- 'commanderZilyana',
81
- 'corporealBeast',
82
- 'crazyArchaeologist',
83
- 'dagannothPrime',
84
- 'dagannothRex',
85
- 'dagannothSupreme',
86
- 'derangedArchaeologist',
87
- 'generalGraardor',
88
- 'giantMole',
89
- 'grotesqueGuardians',
90
- 'hespori',
91
- 'kalphiteQueen',
92
- 'kingBlackDragon',
93
- 'kraken',
94
- 'kreeArra',
95
- 'krilTsutsaroth',
96
- 'mimic',
97
- 'nex',
98
- 'nightmare',
99
- 'phosanisNightmare',
100
- 'obor',
101
- 'phantomMuspah',
102
- 'sarachnis',
103
- 'scorpia',
104
- 'skotizo',
105
- 'tempoross',
106
- 'gauntlet',
107
- 'corruptedGauntlet',
108
- 'theatreOfBlood',
109
- 'theatreOfBloodHardMode',
110
- 'thermonuclearSmokeDevil',
111
- 'tombsOfAmascut',
112
- 'tombsOfAmascutExpertMode',
113
- 'tzKalZuk',
114
- 'tzTokJad',
115
- 'venenatis',
116
- 'vetion',
117
- 'vorkath',
118
- 'wintertodt',
119
- 'zalcano',
120
- 'zulrah'
121
- ];
122
- exports.ACTIVITIES = __spreadArray([
123
- 'leaguePoints',
124
- 'hunterBH',
125
- 'rogueBH',
126
- 'allClues',
127
- 'beginnerClues',
128
- 'easyClues',
129
- 'mediumClues',
130
- 'hardClues',
131
- 'eliteClues',
132
- 'masterClues',
133
- 'lastManStanding',
134
- 'pvpArena',
135
- 'soulWarsZeal',
136
- 'riftsClosed'
137
- ], exports.BOSSES);
138
- exports.FORMATTED_BOSS_NAMES = {
139
- abyssalSire: 'Abyssal Sire',
140
- alchemicalHydra: 'Alchemical Hydra',
141
- barrows: 'Barrows Chests',
142
- bryophyta: 'Bryophyta',
143
- callisto: 'Callisto',
144
- cerberus: 'Cerberus',
145
- chambersOfXeric: 'Chambers of Xeric',
146
- chambersOfXericChallengeMode: 'Chambers of Xeric: Challenge Mode',
147
- chaosElemental: 'Chaos Elemental',
148
- chaosFanatic: 'Chaos Fanatic',
149
- commanderZilyana: 'Commander Zilyana',
150
- corporealBeast: 'Corporeal Beast',
151
- crazyArchaeologist: 'Crazy Archaeologist',
152
- dagannothPrime: 'Dagannoth Prime',
153
- dagannothRex: 'Dagannoth Rex',
154
- dagannothSupreme: 'Dagannoth Supreme',
155
- derangedArchaeologist: 'Deranged Archaeologist',
156
- generalGraardor: 'General Graardor',
157
- giantMole: 'Giant Mole',
158
- grotesqueGuardians: 'Grotesque Guardians',
159
- hespori: 'Hespori',
160
- kalphiteQueen: 'Kalphite Queen',
161
- kingBlackDragon: 'King Black Dragon',
162
- kraken: 'Kraken',
163
- kreeArra: "Kree'Arra",
164
- krilTsutsaroth: "K'ril Tsutsaroth",
165
- mimic: 'Mimic',
166
- nex: 'Nex',
167
- nightmare: 'The Nightmare of Ashihama',
168
- phosanisNightmare: "Phosani's Nightmare",
169
- obor: 'Obor',
170
- phantomMuspah: 'Phantom Muspah',
171
- sarachnis: 'Sarachnis',
172
- scorpia: 'Scorpia',
173
- skotizo: 'Skotizo',
174
- tempoross: 'Tempoross',
175
- gauntlet: 'The Gauntlet',
176
- corruptedGauntlet: 'The Corrupted Gauntlet',
177
- theatreOfBlood: 'Theatre of Blood',
178
- theatreOfBloodHardMode: 'Theatre of Blood: Hard Mode',
179
- thermonuclearSmokeDevil: 'Thermonuclear Smoke Devil',
180
- tombsOfAmascut: 'Tombs of Amascut',
181
- tombsOfAmascutExpertMode: 'Tombs of Amascut: Expert Mode',
182
- tzKalZuk: 'TzKal-Zuk',
183
- tzTokJad: 'TzTok-Jad',
184
- venenatis: 'Venenatis',
185
- vetion: "Vet'ion",
186
- vorkath: 'Vorkath',
187
- wintertodt: 'Wintertodt',
188
- zalcano: 'Zalcano',
189
- zulrah: 'Zulrah'
190
- };
191
- exports.FORMATTED_SKILL_NAMES = {
192
- overall: 'Overall',
193
- attack: 'Attack',
194
- defence: 'Defence',
195
- strength: 'Strength',
196
- hitpoints: 'Hitpoints',
197
- ranged: 'Ranged',
198
- prayer: 'Prayer',
199
- magic: 'Magic',
200
- cooking: 'Cooking',
201
- woodcutting: 'Woodcutting',
202
- fletching: 'Fletching',
203
- fishing: 'Fishing',
204
- firemaking: 'Firemaking',
205
- crafting: 'Crafting',
206
- smithing: 'Smithing',
207
- mining: 'Mining',
208
- herblore: 'Herblore',
209
- agility: 'Agility',
210
- thieving: 'Thieving',
211
- slayer: 'Slayer',
212
- farming: 'Farming',
213
- runecraft: 'Runecraft',
214
- hunter: 'Hunter',
215
- construction: 'Construction'
216
- };
217
- exports.FORMATTED_CLUE_NAMES = {
218
- all: 'Clue Scrolls (all)',
219
- beginner: 'Clue Scrolls (beginner)',
220
- easy: 'Clue Scrolls (easy)',
221
- medium: 'Clue Scrolls (medium)',
222
- hard: 'Clue Scrolls (hard)',
223
- elite: 'Clue Scrolls (elite)',
224
- master: 'Clue Scrolls (master)'
225
- };
226
- exports.FORMATTED_BH_NAMES = {
227
- rogue: 'Bounty Hunter - Rogue',
228
- hunter: 'Bounty Hunter - Hunter'
229
- };
230
- exports.FORMATTED_LMS = 'Last Man Standing';
231
- exports.FORMATTED_PVP_ARENA = 'PvP Arena';
232
- exports.FORMATTED_SOUL_WARS = 'Soul Wars Zeal';
233
- exports.FORMATTED_LEAGUE_POINTS = 'League Points';
234
- exports.FORMATTED_RIFTS_CLOSED = 'Rifts Closed';
235
- exports.INVALID_FORMAT_ERROR = 'Invalid hiscores format';
1
+ "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
3
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
4
+ to[j] = from[i];
5
+ return to;
6
+ };
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.INVALID_FORMAT_ERROR = exports.FORMATTED_RIFTS_CLOSED = exports.FORMATTED_LEAGUE_POINTS = exports.FORMATTED_SOUL_WARS = exports.FORMATTED_PVP_ARENA = exports.FORMATTED_LMS = exports.FORMATTED_BH_NAMES = exports.FORMATTED_CLUE_NAMES = exports.FORMATTED_SKILL_NAMES = exports.FORMATTED_BOSS_NAMES = exports.ACTIVITIES = exports.BOSSES = exports.GAMEMODES = exports.BH_MODES = exports.CLUES = exports.SKILLS = exports.GAMEMODE_URL = exports.SCORES_URL = exports.STATS_URL = exports.BASE_URL = void 0;
9
+ exports.BASE_URL = 'https://secure.runescape.com/m=hiscore_oldschool';
10
+ exports.STATS_URL = 'index_lite.ws?player=';
11
+ exports.SCORES_URL = 'overall.ws?';
12
+ exports.GAMEMODE_URL = {
13
+ main: exports.BASE_URL + "/",
14
+ ironman: exports.BASE_URL + "_ironman/",
15
+ hardcore: exports.BASE_URL + "_hardcore_ironman/",
16
+ ultimate: exports.BASE_URL + "_ultimate/",
17
+ deadman: exports.BASE_URL + "_deadman/",
18
+ seasonal: exports.BASE_URL + "_seasonal/",
19
+ tournament: exports.BASE_URL + "_tournament/",
20
+ skiller: exports.BASE_URL + "_skiller/",
21
+ oneDefence: exports.BASE_URL + "_skiller_defence/",
22
+ freshStart: exports.BASE_URL + "_fresh_start/"
23
+ };
24
+ exports.SKILLS = [
25
+ 'overall',
26
+ 'attack',
27
+ 'defence',
28
+ 'strength',
29
+ 'hitpoints',
30
+ 'ranged',
31
+ 'prayer',
32
+ 'magic',
33
+ 'cooking',
34
+ 'woodcutting',
35
+ 'fletching',
36
+ 'fishing',
37
+ 'firemaking',
38
+ 'crafting',
39
+ 'smithing',
40
+ 'mining',
41
+ 'herblore',
42
+ 'agility',
43
+ 'thieving',
44
+ 'slayer',
45
+ 'farming',
46
+ 'runecraft',
47
+ 'hunter',
48
+ 'construction'
49
+ ];
50
+ exports.CLUES = [
51
+ 'all',
52
+ 'beginner',
53
+ 'easy',
54
+ 'medium',
55
+ 'hard',
56
+ 'elite',
57
+ 'master'
58
+ ];
59
+ exports.BH_MODES = ['hunter', 'rogue'];
60
+ exports.GAMEMODES = [
61
+ 'main',
62
+ 'ironman',
63
+ 'hardcore',
64
+ 'ultimate',
65
+ 'deadman',
66
+ 'seasonal',
67
+ 'tournament'
68
+ ];
69
+ exports.BOSSES = [
70
+ 'abyssalSire',
71
+ 'alchemicalHydra',
72
+ 'barrows',
73
+ 'bryophyta',
74
+ 'callisto',
75
+ 'cerberus',
76
+ 'chambersOfXeric',
77
+ 'chambersOfXericChallengeMode',
78
+ 'chaosElemental',
79
+ 'chaosFanatic',
80
+ 'commanderZilyana',
81
+ 'corporealBeast',
82
+ 'crazyArchaeologist',
83
+ 'dagannothPrime',
84
+ 'dagannothRex',
85
+ 'dagannothSupreme',
86
+ 'derangedArchaeologist',
87
+ 'generalGraardor',
88
+ 'giantMole',
89
+ 'grotesqueGuardians',
90
+ 'hespori',
91
+ 'kalphiteQueen',
92
+ 'kingBlackDragon',
93
+ 'kraken',
94
+ 'kreeArra',
95
+ 'krilTsutsaroth',
96
+ 'mimic',
97
+ 'nex',
98
+ 'nightmare',
99
+ 'phosanisNightmare',
100
+ 'obor',
101
+ 'phantomMuspah',
102
+ 'sarachnis',
103
+ 'scorpia',
104
+ 'skotizo',
105
+ 'tempoross',
106
+ 'gauntlet',
107
+ 'corruptedGauntlet',
108
+ 'theatreOfBlood',
109
+ 'theatreOfBloodHardMode',
110
+ 'thermonuclearSmokeDevil',
111
+ 'tombsOfAmascut',
112
+ 'tombsOfAmascutExpertMode',
113
+ 'tzKalZuk',
114
+ 'tzTokJad',
115
+ 'venenatis',
116
+ 'vetion',
117
+ 'vorkath',
118
+ 'wintertodt',
119
+ 'zalcano',
120
+ 'zulrah'
121
+ ];
122
+ exports.ACTIVITIES = __spreadArray([
123
+ 'leaguePoints',
124
+ 'hunterBH',
125
+ 'rogueBH',
126
+ 'allClues',
127
+ 'beginnerClues',
128
+ 'easyClues',
129
+ 'mediumClues',
130
+ 'hardClues',
131
+ 'eliteClues',
132
+ 'masterClues',
133
+ 'lastManStanding',
134
+ 'pvpArena',
135
+ 'soulWarsZeal',
136
+ 'riftsClosed'
137
+ ], exports.BOSSES);
138
+ exports.FORMATTED_BOSS_NAMES = {
139
+ abyssalSire: 'Abyssal Sire',
140
+ alchemicalHydra: 'Alchemical Hydra',
141
+ barrows: 'Barrows Chests',
142
+ bryophyta: 'Bryophyta',
143
+ callisto: 'Callisto',
144
+ cerberus: 'Cerberus',
145
+ chambersOfXeric: 'Chambers of Xeric',
146
+ chambersOfXericChallengeMode: 'Chambers of Xeric: Challenge Mode',
147
+ chaosElemental: 'Chaos Elemental',
148
+ chaosFanatic: 'Chaos Fanatic',
149
+ commanderZilyana: 'Commander Zilyana',
150
+ corporealBeast: 'Corporeal Beast',
151
+ crazyArchaeologist: 'Crazy Archaeologist',
152
+ dagannothPrime: 'Dagannoth Prime',
153
+ dagannothRex: 'Dagannoth Rex',
154
+ dagannothSupreme: 'Dagannoth Supreme',
155
+ derangedArchaeologist: 'Deranged Archaeologist',
156
+ generalGraardor: 'General Graardor',
157
+ giantMole: 'Giant Mole',
158
+ grotesqueGuardians: 'Grotesque Guardians',
159
+ hespori: 'Hespori',
160
+ kalphiteQueen: 'Kalphite Queen',
161
+ kingBlackDragon: 'King Black Dragon',
162
+ kraken: 'Kraken',
163
+ kreeArra: "Kree'Arra",
164
+ krilTsutsaroth: "K'ril Tsutsaroth",
165
+ mimic: 'Mimic',
166
+ nex: 'Nex',
167
+ nightmare: 'The Nightmare of Ashihama',
168
+ phosanisNightmare: "Phosani's Nightmare",
169
+ obor: 'Obor',
170
+ phantomMuspah: 'Phantom Muspah',
171
+ sarachnis: 'Sarachnis',
172
+ scorpia: 'Scorpia',
173
+ skotizo: 'Skotizo',
174
+ tempoross: 'Tempoross',
175
+ gauntlet: 'The Gauntlet',
176
+ corruptedGauntlet: 'The Corrupted Gauntlet',
177
+ theatreOfBlood: 'Theatre of Blood',
178
+ theatreOfBloodHardMode: 'Theatre of Blood: Hard Mode',
179
+ thermonuclearSmokeDevil: 'Thermonuclear Smoke Devil',
180
+ tombsOfAmascut: 'Tombs of Amascut',
181
+ tombsOfAmascutExpertMode: 'Tombs of Amascut: Expert Mode',
182
+ tzKalZuk: 'TzKal-Zuk',
183
+ tzTokJad: 'TzTok-Jad',
184
+ venenatis: 'Venenatis',
185
+ vetion: "Vet'ion",
186
+ vorkath: 'Vorkath',
187
+ wintertodt: 'Wintertodt',
188
+ zalcano: 'Zalcano',
189
+ zulrah: 'Zulrah'
190
+ };
191
+ exports.FORMATTED_SKILL_NAMES = {
192
+ overall: 'Overall',
193
+ attack: 'Attack',
194
+ defence: 'Defence',
195
+ strength: 'Strength',
196
+ hitpoints: 'Hitpoints',
197
+ ranged: 'Ranged',
198
+ prayer: 'Prayer',
199
+ magic: 'Magic',
200
+ cooking: 'Cooking',
201
+ woodcutting: 'Woodcutting',
202
+ fletching: 'Fletching',
203
+ fishing: 'Fishing',
204
+ firemaking: 'Firemaking',
205
+ crafting: 'Crafting',
206
+ smithing: 'Smithing',
207
+ mining: 'Mining',
208
+ herblore: 'Herblore',
209
+ agility: 'Agility',
210
+ thieving: 'Thieving',
211
+ slayer: 'Slayer',
212
+ farming: 'Farming',
213
+ runecraft: 'Runecraft',
214
+ hunter: 'Hunter',
215
+ construction: 'Construction'
216
+ };
217
+ exports.FORMATTED_CLUE_NAMES = {
218
+ all: 'Clue Scrolls (all)',
219
+ beginner: 'Clue Scrolls (beginner)',
220
+ easy: 'Clue Scrolls (easy)',
221
+ medium: 'Clue Scrolls (medium)',
222
+ hard: 'Clue Scrolls (hard)',
223
+ elite: 'Clue Scrolls (elite)',
224
+ master: 'Clue Scrolls (master)'
225
+ };
226
+ exports.FORMATTED_BH_NAMES = {
227
+ rogue: 'Bounty Hunter - Rogue',
228
+ hunter: 'Bounty Hunter - Hunter'
229
+ };
230
+ exports.FORMATTED_LMS = 'Last Man Standing';
231
+ exports.FORMATTED_PVP_ARENA = 'PvP Arena';
232
+ exports.FORMATTED_SOUL_WARS = 'Soul Wars Zeal';
233
+ exports.FORMATTED_LEAGUE_POINTS = 'League Points';
234
+ exports.FORMATTED_RIFTS_CLOSED = 'Rifts Closed';
235
+ exports.INVALID_FORMAT_ERROR = 'Invalid hiscores format';
@@ -1,56 +1,62 @@
1
- import { Gamemode, SkillName, ActivityName } from '../types';
2
- /**
3
- * Will generate a stats URL for the official OSRS API.
4
- *
5
- * @param gamemode Gamemode to fetch ranks for.
6
- * @param rsn Username of the player.
7
- * @returns Encoded stats URL.
8
- */
9
- export declare const getStatsURL: (gamemode: Gamemode, rsn: string) => string;
10
- /**
11
- * Will generate a player table URL for the official OSRS hiscores website.
12
- *
13
- * @param gamemode Gamemode to fetch ranks for.
14
- * @param rsn Username of the player.
15
- * @returns Encoded player table URL.
16
- */
17
- export declare const getPlayerTableURL: (gamemode: Gamemode, rsn: string) => string;
18
- /**
19
- * Will generate a skill table URL for the official OSRS hiscores website.
20
- *
21
- * @param gamemode Gamemode to fetch ranks for.
22
- * @param skill Skill to fetch ranks for.
23
- * @param page Page number.
24
- * @returns
25
- */
26
- export declare const getSkillPageURL: (gamemode: Gamemode, skill: SkillName, page: number) => string;
27
- /**
28
- * Will generate an activity table URL for the official OSRS hiscores website.
29
- *
30
- * @param gamemode Gamemode to fetch ranks for.
31
- * @param activity Activity or boss to fetch ranks for.
32
- * @param page Page number.
33
- * @returns
34
- */
35
- export declare const getActivityPageURL: (gamemode: Gamemode, activity: ActivityName, page: number) => string;
36
- /**
37
- * Extracts a number from an OSRS hiscores table cell element.
38
- *
39
- * @param el OSRS hiscores table cell element.
40
- * @returns Number parsed from cell text.
41
- */
42
- export declare const numberFromElement: (el: Element | null) => number;
43
- /**
44
- * Extracts a RSN from an OSRS hiscores table cell element.
45
- *
46
- * @param el OSRS hiscores table cell element.
47
- * @returns RSN parsed from cell text.
48
- */
49
- export declare const rsnFromElement: (el: Element | null) => string;
50
- /**
51
- * Will run an Axios `GET` request against a given URL after injecting a `User-Agent` header.
52
- *
53
- * @param url URL to run a `GET` request against.
54
- * @returns Axios response.
55
- */
56
- export declare const httpGet: (url: string) => Promise<import("axios").AxiosResponse<any>>;
1
+ import { Gamemode, SkillName, ActivityName } from '../types';
2
+ /**
3
+ * Will generate a stats URL for the official OSRS API.
4
+ *
5
+ * @param gamemode Gamemode to fetch ranks for.
6
+ * @param rsn Username of the player.
7
+ * @returns Encoded stats URL.
8
+ */
9
+ export declare const getStatsURL: (gamemode: Gamemode, rsn: string) => string;
10
+ /**
11
+ * Will generate a player table URL for the official OSRS hiscores website.
12
+ *
13
+ * @param gamemode Gamemode to fetch ranks for.
14
+ * @param rsn Username of the player.
15
+ * @returns Encoded player table URL.
16
+ */
17
+ export declare const getPlayerTableURL: (gamemode: Gamemode, rsn: string) => string;
18
+ /**
19
+ * Will generate a skill table URL for the official OSRS hiscores website.
20
+ *
21
+ * @param gamemode Gamemode to fetch ranks for.
22
+ * @param skill Skill to fetch ranks for.
23
+ * @param page Page number.
24
+ * @returns
25
+ */
26
+ export declare const getSkillPageURL: (gamemode: Gamemode, skill: SkillName, page: number) => string;
27
+ /**
28
+ * Will generate an activity table URL for the official OSRS hiscores website.
29
+ *
30
+ * @param gamemode Gamemode to fetch ranks for.
31
+ * @param activity Activity or boss to fetch ranks for.
32
+ * @param page Page number.
33
+ * @returns
34
+ */
35
+ export declare const getActivityPageURL: (gamemode: Gamemode, activity: ActivityName, page: number) => string;
36
+ /**
37
+ * Extracts a number from an OSRS hiscores table cell element.
38
+ *
39
+ * @param el OSRS hiscores table cell element.
40
+ * @returns Number parsed from cell text.
41
+ */
42
+ export declare const numberFromElement: (el: Element | null) => number;
43
+ /**
44
+ * Extracts a RSN from an OSRS hiscores table cell element.
45
+ *
46
+ * @param el OSRS hiscores table cell element.
47
+ * @returns RSN parsed from cell text.
48
+ */
49
+ export declare const rsnFromElement: (el: Element | null) => string;
50
+ /**
51
+ * Will run an Axios `GET` request against a given URL after injecting a `User-Agent` header.
52
+ *
53
+ * @param url URL to run a `GET` request against.
54
+ * @returns Axios response.
55
+ */
56
+ export declare const httpGet: <Response_1>(url: string) => Promise<import("axios").AxiosResponse<Response_1>>;
57
+ /**
58
+ * Validates that a provided RSN has the same username restrictions as Jagex.
59
+ * @param rsn Username to validate.
60
+ * @throws Error if the RSN fails validation.
61
+ */
62
+ export declare const validateRSN: (rsn: string) => void;