UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

33 lines • 1.25 kB
import { KeyManagementService } from "./KeyManagementService.mjs"; //#region src/modules/kms/KeyManagementModuleConfig.d.ts export interface KeyManagementModuleConfigOptions { /** * The backends to use for key management and cryptographic operations. */ backends?: KeyManagementService[]; /** * The default backend to use, indicated by the `backend` property * on the `KeyManagementService` instance. * * If provided and it doesn't match an entry in the `backends` array * an error will be thrown. * * If not provided, the first backend from the `backends` array will be used. */ defaultBackend?: string; } export declare class KeyManagementModuleConfig { #private; constructor(options: KeyManagementModuleConfigOptions); get backends(): KeyManagementService[]; registerBackend(backend: KeyManagementService): void; /** * The default backend, used for operations where no explicit `backend` is provided. * * Returns the backend matching the `defaultBackend` identifier from the config options, * or the first registered backend if no `defaultBackend` was configured. */ get defaultBackend(): KeyManagementService; } //#endregion //# sourceMappingURL=KeyManagementModuleConfig.d.mts.map