UNPKG

710 BTypeScriptView Raw
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
8import * as server from './lib/server';
9import * as client from './lib/client';
10import * as crypto from './lib/crypto';
11import * as utils from './lib/utils';
12
13export 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 */
19export function setTimeFunction(fn: () => number): void;
20
21export { server, client, crypto, utils };
22
23export as namespace hawk;