-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathipfs-api.d.ts
50 lines (38 loc) · 910 Bytes
/
ipfs-api.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
/**
* Created by peter on 7/1/17.
*/
export as namespace IpfsAPI;
export = ipfsAPI;
declare function ipfsAPI(hostOrMultiaddr: string, port?: string, opts?);
declare namespace ipfsAPI {
function version(callback:(err,version:string) => void);
function ping();
function ls();
export interface bitswap {
}
export interface block {
}
export interface bootstrap {
}
export interface files {
ls(directory:string,callback:(error,result)=> void);
read(file:string,{offset,count}:{offset?:number,count?:number},callback:(err,stream:NodeJS.ReadableStream) => void)
}
export interface dht {
}
export interface config {
}
export interface log {
}
export interface repo {
}
export interface swarm {
}
export interface refs {
}
export interface pin {
add()
rm()
ls()
}
}