@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
25 lines (24 loc) • 976 B
TypeScript
import { type ConfigSource } from '../spi/config-source.js';
import { type ObjectMapper } from '../../mapper/api/object-mapper.js';
import { LayeredConfigSource } from './layered-config-source.js';
import { type Refreshable } from '../spi/refreshable.js';
/**
* A {@link ConfigSource} that reads configuration data from the environment.
*
* <p>
* Strings are read verbatim from the environment variables.
* Numbers and booleans are converted from strings using the JSON parser.
* Objects, arrays of objects, and arrays of primitives are assumed to be stored as serialized JSON strings.
*/
export declare class EnvironmentConfigSource extends LayeredConfigSource implements ConfigSource, Refreshable {
/**
* The data read from the environment.
* @private
*/
private readonly data;
constructor(mapper: ObjectMapper, prefix?: string);
get name(): string;
get ordinal(): number;
refresh(): Promise<void>;
load(): Promise<void>;
}