envilder
Version:
A CLI and GitHub Action that securely centralizes your environment variables from AWS SSM or Azure Key Vault as a single source of truth
29 lines • 1.12 kB
TypeScript
import type { ParsedMapFile } from '../domain/parsed-map-file.js';
import type { ISecretProvider } from '../domain/ports/secret-provider.js';
/**
* Core client that resolves secrets from a configured provider.
*
* For most use cases prefer the {@link Envilder} facade.
* Use this class directly when you need a custom {@link ISecretProvider}.
*
* @example
* ```typescript
* const provider = new MyCustomProvider();
* const mapFile = new MapFileParser().parse(json);
* const secrets = await new EnvilderClient(provider).resolveSecrets(mapFile);
* ```
*/
export declare class EnvilderClient {
private readonly secretProvider;
constructor(secretProvider: ISecretProvider);
/**
* Resolves all mappings against the configured secret provider.
* Entries whose secret does not exist are silently omitted.
*/
resolveSecrets(mapFile: ParsedMapFile): Promise<Map<string, string>>;
/**
* Sets every key/value pair as a process-level environment variable.
*/
static injectIntoEnvironment(secrets: Map<string, string>): void;
}
//# sourceMappingURL=envilder-client.d.ts.map