1 | // Type definitions for hawk 9.0
|
2 | // Project: https://github.com/mozilla/hawk/
|
3 | // Definitions by: Florian Imdahl <https://github.com/ffflorian>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | /// <reference types="node" />
|
7 |
|
8 | import * as server from './lib/server';
|
9 | import * as client from './lib/client';
|
10 | import * as crypto from './lib/crypto';
|
11 | import * as utils from './lib/utils';
|
12 |
|
13 | export namespace uri {
|
14 | const authenticate: typeof server.authenticateBewit;
|
15 | const getBewit: typeof client.getBewit;
|
16 | }
|
17 |
|
18 | /** override the `now` function, e.g., to use sntp */
|
19 | export function setTimeFunction(fn: () => number): void;
|
20 |
|
21 | export { server, client, crypto, utils };
|
22 |
|
23 | export as namespace hawk;
|