1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | declare function main(message: string | Buffer, options?: Sha1AsStringOptions): string;
|
16 | declare function main(message: string | Buffer, options?: Sha1AsBytesOptions): Uint8Array;
|
17 | declare function main(message: string | Buffer, options?: Sha1Options): string | Uint8Array;
|
18 | export = main;
|
19 |
|
20 | interface Sha1AsStringOptions {
|
21 | asBytes?: false | undefined;
|
22 | asString?: boolean | undefined;
|
23 | }
|
24 |
|
25 | interface Sha1AsBytesOptions {
|
26 | asBytes: true;
|
27 | asString?: false | undefined;
|
28 | }
|
29 |
|
30 | type Sha1Options = Sha1AsStringOptions | Sha1AsBytesOptions;
|