-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
56 lines (45 loc) · 1.04 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
49
50
51
52
53
54
55
56
declare module 'weibo-pic' {
import stream = require('stream');
namespace WBPic {
interface uri {
thumb?: string;
middle?: string;
large?: string;
mw690?: string;
cover?: string;
}
interface form {
app: string;
token: string;
s: string;
rotate: number;
nick: string;
url: string;
cb: string;
pic1: object;
}
interface pic {
width: number;
height: number;
ratio: number;
uri: any
}
interface upload {
width: number;
height: number;
ratio: number;
uri: uri
}
}
class WBPic {
static upload(cookie: string, file: string, uid?: number): WBPic.upload;
static uploadStream(cookie: string, file: stream.Readable, uid?: number): WBPic.upload;
cookie: string;
uid: number;
constructor(cookie: string, uid: number);
update(cookie: string, uid: number): void;
upload(file: string): WBPic.upload;
uploadStream(file: stream.Readable): WBPic.upload;
}
export = WBPic
}