UNPKG

533 BTypeScriptView Raw
1import { IBrontosaurusBody } from "@brontosaurus/definition";
2import { BrontosaurusKey } from "./crypto";
3export declare class BrontosaurusSign {
4 static create(key: string, body: IBrontosaurusBody, secret: BrontosaurusKey): BrontosaurusSign;
5 private readonly _key;
6 private readonly _body;
7 private readonly _secret;
8 private constructor();
9 readonly body: IBrontosaurusBody;
10 readonly publicKey: string;
11 readonly privateKey: string;
12 token(expireAt?: number, issuedAt?: number): string;
13}