import { SecretStoreBaseClass } from '../core/SecretStore/SecretStoreBaseClass.impl.js'; import type { SecretStore } from '../core/SecretStore/types/SecretStore.js'; import type { StoreBaseConfig } from '../core/types/StoreBaseConfig.js'; import type { ObjectWithKeysFromStringArray } from '../helper/types/ObjectWithKeysFromStringArray.js'; import type { DefaultSecretStoreConfig } from './types/DefaultSecretStoreConfig.js'; /** * Process-local in-memory secret store for development and tests. * * The DefaultSecretStore is a placeholder which offers all needed methods. * Getters and setters will throw a UnhandledError with status `Unauthorized`, when a disabled operation is called. * Values are stored as plain strings in memory and must not be used for * production secrets. * * For development and testing purpose, you can initiate the store with values. * * @example * ```typescript * const store = new DefaultSecretStore({ * config: { * secretOne: 'my_secret_one_value', * secretTwo: 'my_secret_two_value', * } * }) * console.log(await store.getSecret('secretOne', 'secretTwo) // outputs: { secretOne: my_secret_one_value, secretTwo: 'my_secret_two_value' } * ``` * By default, setting/changing and removal of values are disabled. * You can enable it on instance creation: * * @example * ```typescript * const store = new DefaultSecretStore({ * enableGet: true, * enableRemove: true, * enableSet: true, * }) * ``` * * @group Store * */ export declare class DefaultSecretStore extends SecretStoreBaseClass implements SecretStore { private map; constructor(config?: StoreBaseConfig); protected getSecretImpl(...secretNames: SecretNames): Promise>; protected setSecretImpl(secretName: string, secretValue: string): Promise; protected removeSecretImpl(secretName: string): Promise; } //# sourceMappingURL=DefaultSecretStore.impl.d.ts.map