-
Notifications
You must be signed in to change notification settings - Fork 339
/
global.d.ts
47 lines (39 loc) · 994 Bytes
/
global.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
/**
* Best effort declaration files.
*/
declare namespace ASN1 {
type EncoderInputTypes = string | number | boolean | number[] | string[] | Buffer;
type EncoderInput = {
[id: string]: EncoderInputTypes | EncoderInput;
};
type PemParams = {
label: string;
};
class Builder {
seq(): this;
obj(...keys: this[]): this;
key(name: string): this;
int(): this;
octstr(): this;
explicit(n: number): this;
bitstr(): this;
optional(): this;
objid(): this;
}
class Encoder {
encode(input: EncoderInput, type: 'pem', params: PemParams): string;
}
export function define(subject: string, fn: (this: Builder) => void): Encoder;
}
declare module 'asn1.js' {
export = ASN1;
}
declare module 'promisepipe' {
export default function (input: NodeJS.ReadableStream, outout: NodeJS.WritableStream): void;
}
declare namespace WebdriverIO {
interface Browser {
getUrl(): Promise<string>;
deleteSession(): Promise<void>;
}
}