@nats-io/jwt
Version:
NATS jwt.js
8 lines (7 loc) • 314 B
TypeScript
import type { 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;