/** * @packageDocumentation * @module API-KeyVM */ import LuxCore from "../../lux"; import { JRPCAPI } from "../../common/jrpcapi"; import { DistributedKey, CreateKeyParams, CreateKeyResponse, ListKeysParams, ListKeysResponse, EncryptParams, EncryptResponse, CryptoAlgorithm, KeyVMHealthResponse } from "./interfaces"; /** * Class for interacting with the K-Chain (Key Chain) KeyVM API. * * @category RPCAPIs * * @remarks This extends the [[JRPCAPI]] class. This class should not be directly called. * Instead, use the [[Lux.addAPI]] function to register this interface with Lux. */ export declare class KeyVMAPI extends JRPCAPI { /** * List all distributed keys. */ listKeys: (params?: ListKeysParams) => Promise; /** * Get key by ID. */ getKeyByID: (keyId: string) => Promise; /** * Get key by name. */ getKeyByName: (name: string) => Promise; /** * Create a new distributed key. */ createKey: (params: CreateKeyParams) => Promise; /** * Delete a key. */ deleteKey: (keyId: string) => Promise; /** * Encrypt data with a key. */ encrypt: (params: EncryptParams) => Promise; /** * List supported cryptographic algorithms. */ listAlgorithms: () => Promise; /** * Health check. */ health: () => Promise; constructor(core: LuxCore, baseURL?: string); } //# sourceMappingURL=api.d.ts.map