1+ export class RedGuyApi {
2+ constructor ( token : string , options ?: { v ?:string } ) ;
3+
4+ Math ( ) : Math ;
5+ Store ( ) : Store ;
6+ Users ( ) : Users ;
7+ Event ( ) : Event ;
8+ Teams ( ) : Teams ;
9+ Minecraft ( ) : Minecraft ;
10+ }
11+
12+
13+ export class Math {
14+ constructor ( options : { token : string , v : string } ) ;
15+
16+ get ( level : string , number : number ) : Promise < BigInteger > ;
17+ max ( level : string ) : Promise < number > ;
18+ }
19+
20+ export class NumberLevels {
21+ static get factorial ( ) : string ;
22+ static get superFactorial ( ) : string ;
23+ static get hyperFactorial ( ) : string ;
24+ static get megaFactorial ( ) : string ;
25+ static get gigaFactorial ( ) : string ;
26+ static get sixFactorial ( ) : string ;
27+ static get sevenFactorial ( ) : string ;
28+ static get eighthFactorial ( ) : string ;
29+ static get nineFactorial ( ) : string ;
30+ static get tenFactorial ( ) : string ;
31+ }
32+
33+
34+ export class Store {
35+ constructor ( options : { token : string , v : string } ) ;
36+
37+ Json ( ) : Json ;
38+ }
39+
40+ export class Json {
41+ constructor ( options : { token : string , v : string } ) ;
42+
43+ get ( bukkit : string ) : Promise < object > ;
44+ set ( bukkit : string , data : object ) : Promise < { bukkitName : string , length : number } > ;
45+ }
46+
47+
48+ export class Users {
49+ constructor ( options : { token : string , v : string } ) ;
50+
51+ get ( id : number , additional : Additional ) : Promise < { id : number , first_name ?: string , last_name ?: string , mine_nick ?: string , avatar_url ?: string , background_url ?: string } > ;
52+ Balance ( ) : Balance ;
53+ }
54+
55+ export class Additional {
56+ constructor ( ) ;
57+
58+ mine_nick ( ) : Additional
59+ avatar ( ) : Additional
60+ background ( ) : Additional
61+ getResult ( ) : Additional
62+ }
63+
64+ export class Balance {
65+ constructor ( options : { token : string , v : string } ) ;
66+
67+ get ( id : number ) : Promise < number > ;
68+ }
69+
70+
71+ export class Event {
72+ constructor ( options : { token : string , v : string } ) ;
73+
74+ getStats ( nick : string ) : Promise < { coins : number , wins : number , tokens : number , kills : number } >
75+ Coins ( ) : Coins ;
76+ Tokens ( ) : Tokens ;
77+ Wins ( ) : Wins ;
78+ Kills ( ) : Kills ;
79+ }
80+
81+ export class Coins {
82+ constructor ( options : { token : string , v : string } ) ;
83+
84+ get ( nick : string ) : Promise < number > ;
85+
86+ add ( nick : string , coins : number ) : Promise < { oldCoins : number , newCoins : number } >
87+
88+ set ( nick : string , coins : number ) : Promise < { oldCoins : number , newCoins : number } >
89+ }
90+
91+ export class Tokens {
92+ constructor ( options : { token : string , v : string } ) ;
93+
94+ get ( nick : string ) : Promise < number > ;
95+
96+ add ( nick : string , tokens : number ) : Promise < { oldTokens : number , newTokens : number } >
97+
98+ set ( nick : string , tokens : number ) : Promise < { oldTokens : number , newTokens : number } >
99+ }
100+
101+ export class Wins {
102+ constructor ( options : { token : string , v : string } ) ;
103+
104+ get ( nick : string ) : Promise < number > ;
105+
106+ add ( nick : string , wins : number ) : Promise < { oldWins : number , newWins : number } >
107+
108+ set ( nick : string , wins : number ) : Promise < { oldWins : number , newWins : number } >
109+ }
110+
111+ export class Kills {
112+ constructor ( options : { token : string , v : string } ) ;
113+
114+ get ( nick : string ) : Promise < number > ;
115+
116+ add ( nick : string , kills : number ) : Promise < { oldKills : number , newKills : number } >
117+
118+ set ( nick : string , kills : number ) : Promise < { oldKills : number , newKills : number } >
119+ }
120+
121+
122+ export class Teams {
123+ constructor ( options : { token : string , v : string } ) ;
124+
125+ get ( id : string , socNet : string ) : Promise < [ { id : number , companyId : number , companyName : string , nick : string , position : string } ] >
126+ }
127+
128+
129+ export class Minecraft {
130+ constructor ( options : { token : string , v : string } )
131+
132+ serverinfo ( ip : string , port ?: number , type ?: string ) : Promise < {
133+ description ?: {
134+ extra : [ {
135+ color : string ,
136+ text : string
137+ } ] ,
138+ text : string
139+ } ,
140+ modinfo ?: {
141+ modList : [ ] ,
142+ type : string
143+ } ,
144+ players ?: {
145+ max : number ,
146+ online : number
147+ } ,
148+ version ?: {
149+ name : string ,
150+ protocol : string
151+ }
152+ } >
153+ }
0 commit comments