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