@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
48 lines (47 loc) • 2.04 kB
text/typescript
import { DidRegistrar } from "./domain/DidRegistrar.mjs";
import { DidResolver } from "./domain/DidResolver.mjs";
import "./domain/index.mjs";
//#region src/modules/dids/DidsModuleConfig.d.ts
/**
* DidsModuleConfigOptions defines the interface for the options of the DidsModuleConfig class.
* This can contain optional parameters that have default values in the config class itself.
*/
interface DidsModuleConfigOptions {
/**
* List of did registrars that should be used by the dids module. The registrar must
* be an instance of the {@link DidRegistrar} interface.
*
* If no registrars are provided, the default registrars will be used. `PeerDidRegistrar` and `KeyDidRegistrar`
* will ALWAYS be registered, as they are needed for connections, mediation and out of band modules to function.
* Other did methods can be disabled.
*
* @default [KeyDidRegistrar, PeerDidRegistrar, JwkDidRegistrar]
*/
registrars?: DidRegistrar[];
/**
* List of did resolvers that should be used by the dids module. The resolver must
* be an instance of the {@link DidResolver} interface.
*
* If no resolvers are provided, the default resolvers will be used. `PeerDidResolver` and `KeyDidResolver`
* will ALWAYS be registered, as they are needed for connections, mediation and out of band modules to function.
* Other did methods can be disabled.
*
* @default [WebDidResolver, KeyDidResolver, PeerDidResolver, JwkDidResolver]
*/
resolvers?: DidResolver[];
}
declare class DidsModuleConfig {
private options;
private _registrars;
private _resolvers;
constructor(options?: DidsModuleConfigOptions);
/** See {@link DidsModuleConfigOptions.registrars} */
get registrars(): DidRegistrar[];
addRegistrar(registrar: DidRegistrar): void;
/** See {@link DidsModuleConfigOptions.resolvers} */
get resolvers(): DidResolver[];
addResolver(resolver: DidResolver): void;
}
//#endregion
export { DidsModuleConfig, DidsModuleConfigOptions };
//# sourceMappingURL=DidsModuleConfig.d.mts.map