summaryrefslogtreecommitdiff
path: root/web/js/browser/lib/hawk.d.ts
blob: d4e526336e311a041098155b22f8975f4756aada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/// <reference types="./lib/types" />
export declare function deriveHawkCredentials(token: hexstring, context: string): Promise<{
    id: string;
    key: Uint8Array;
    bundleKey: string;
}>;
export declare function hawkHeader(method: string, uri: string, options: {
    credentials: {
        id: string;
        key: Uint8Array;
    };
    payload?: string;
    timestamp?: number;
    nonce?: string;
    contentType?: string;
    localtimeOffsetMsec?: number;
}): Promise<string>;
export declare function header(method: string, uri: string, token: string, kind: string, options: {
    payload?: string;
    timestamp?: number;
    nonce?: string;
    contentType?: string;
    localtimeOffsetMsec?: number;
}): Promise<Headers>;