-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.d.ts
49 lines (44 loc) · 1.02 KB
/
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
44
45
46
47
48
type nodes_info = {
country: string
customs_review_total?: number
ip_addr: string
last_online: boolean
lat?: number
lon?: number
outbound_total?: number
region: string
armoredPublicKey: string
publicKeyObj?: any
}
interface keyPair {
keyID: string
publicKeyArmor?: string
privateKeyArmor?: string
keyObj?:{
publicKeyObj: any
privateKeyObj: any
}
}
type pgpKeyPair = {
privateKeyArmor: string
publicKeyArmor: string
publicKeyObj?: any
privateKeyObj?: any
}
interface profile extends keyPair {
isPrimary?: boolean
pgpKey?: pgpKeyPair
privateKeyArmor: string
emailAddr?: string
hdPath: string
index: number
nodeID?: number
nodeIP_address?: string
nodeRegion?: string
}
interface proxy {
restart: (currentProfile: profile, entryNodes: nodes_info[], egressNodes: nodes_info[]) => void
end: () => Promise<true>
}
export declare const launchDaemon : (port: number, path: string) => void
export declare const proxyServer: (post: string, entryNode: nodes_info, _egressNode: nodes_info, profile: profile) => proxy