UNPKG

@fanoutio/grip

Version:
15 lines 634 B
import * as jose from 'jose'; export declare class PemKey { keyString: string; type: 'public' | 'private'; constructor(keyString: string); getKeyLike(alg: string): Promise<jose.KeyLike>; } export declare class JwkKey { jwk: JsonWebKey; constructor(jwk: JsonWebKey); getSecretOrKeyLike(alg?: string): Promise<Uint8Array | jose.KeyLike>; } export declare function isSymmetricSecret(key: Uint8Array | jose.KeyLike | PemKey | JwkKey): boolean; export declare function loadKey(key: string | JsonWebKey | Uint8Array | jose.KeyLike): Uint8Array | jose.KeyLike | PemKey | JwkKey; //# sourceMappingURL=keys.d.ts.map