// Type definitions for hawk 9.0 // Project: https://github.com/mozilla/hawk/ // Definitions by: Florian Imdahl // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import * as server from './lib/server'; import * as client from './lib/client'; import * as crypto from './lib/crypto'; import * as utils from './lib/utils'; export namespace uri { const authenticate: typeof server.authenticateBewit; const getBewit: typeof client.getBewit; } /** override the `now` function, e.g., to use sntp */ export function setTimeFunction(fn: () => number): void; export { server, client, crypto, utils }; export as namespace hawk;