-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremix.env.d.ts
69 lines (62 loc) · 1.64 KB
/
remix.env.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/// <reference types="@remix-run/dev" />
/// <reference types="@remix-run/node/globals" />
declare module 'node-unifi' {
class Controller {
constructor(
options: Partial<{
/** The Hostname/IP of your UniFi Controller */
host: string
/** The port number of the */
port: number
/** The username to login with (defualt: admin) */
username: string
/** The password to login with (default: ubnt) */
password: string
/** Site name (default: default) */
site: string
/** Verify the SSL Certificate (default: true) */
sslverify: boolean
}>
)
/**
* Login to the UniFi Controller
*
* @param username
* @param password
*/
login(username?: string, password?: string): Promise<boolean>
logout(): Promise<boolean>
getVouchers(create_time?: number): Promise<
{
_id: string
site_id: string
create_time: number
code: string
for_hotspot: boolean
admin_name: string
quota: number
duration: number
used: number
qos_overwrite: boolean
note: string | null
status: string
status_expires: number
}[]
>
createVouchers(
minutes: number,
count?: number,
quota?: number,
note?: string,
up?: number,
down?: number,
megabytes?: number
): Promise<[{create_time: number}]>
}
}
declare module 'net-snmp' {
type Session = {
get(oids: string[], cb: (error?: Error, varbinds?: any) => void): void
}
export function createSession(ip: string, community: string): Session
}