nats-jwt
Version:
NATS jwt.js
8 lines (7 loc) • 309 B
TypeScript
import { KeyPair } from "./nkeys";
/**
* Key is a generalized representation of an NKey in one of its
* possible serialized forms: string, Uint8Array or KeyPair
*/
export type Key = string | Uint8Array | KeyPair;
export declare function checkKey(v: Key, type?: string | string[], seed?: boolean): KeyPair;