import { type BaseConnector, type BaseLogger, type SecretValue } from '@kubricate/core'; export interface EnvConnectorConfig { /** * The prefix to use for environment variables. */ prefix?: string; /** * populate process.env with the contents of a .env file * @default `true` */ allowDotEnv?: boolean; /** * Whether to perform case-insensitive lookups for environment variables. * If true, the connector will match environment variable names in a case-insensitive manner. * @default `false` */ caseInsensitive?: boolean; /** * The working directory to load the .env file from. * This is useful for loading .env files from different directories. * * @default `process.cwd()` */ workingDir?: string; } /** * EnvConnector is a BaseConnector implementation that reads secrets * from process.env, optionally loading from a .env file and supporting * configurable prefixes and case-insensitive lookups. */ export declare class EnvConnector implements BaseConnector { config: EnvConnectorConfig; private prefix; private secrets; private caseInsensitive; logger?: BaseLogger; private workingDir?; constructor(config?: EnvConnectorConfig); /** * Set the working directory for loading .env files. * @param path The path to the working directory. */ setWorkingDir(path: string): void; /** * Get the working directory for loading .env files. * @returns The path to the working directory. */ getWorkingDir(): string | undefined; getEnvFilePath(): string; normalizeName(name: string): string; /** * Load secrets from environment variables. * @param names The names of the secrets to load. * @throws Will throw an error if a secret is not found or if the name is invalid. */ load(names: string[]): Promise; tryParseSecretValue(value: string): SecretValue; /** * Get the value of a secret. * @param name The name of the secret to get. * @returns The value of the secret. * @throws Will throw an error if the secret is not loaded. */ get(name: string): SecretValue; } //# sourceMappingURL=EnvConnector.d.ts.map