/** * YAML Parser with Environment Variable Interpolation * * Parses YAML config files and replaces environment variable references. * * Supported formats: * - ${VAR_NAME} - Required variable (throws if not set) * - ${VAR_NAME:-default} - Optional variable with default value */ /** * Interpolates environment variables in a string * * @param value - String potentially containing env var references * @returns String with env vars replaced * @throws Error if required env var is not set * * @example * interpolateEnvVars('${LOG_LEVEL:-info}') // returns 'info' if LOG_LEVEL not set * interpolateEnvVars('${SERVICE_NAME}') // throws if SERVICE_NAME not set */ export declare function interpolateEnvVars(value: string): string; /** * Recursively interpolates environment variables in an object * * @param obj - Object potentially containing env var references in string values * @returns Object with all string values interpolated */ export declare function interpolateObject(obj: any): any; /** * Parses YAML string and interpolates environment variables * * @param yamlContent - Raw YAML string * @returns Parsed and interpolated object * @throws Error if YAML is invalid or required env vars are missing * * @example * const config = parseYamlWithEnv(` * service: * name: \${SERVICE_NAME} * environment: \${NODE_ENV:-development} * `) */ export declare function parseYamlWithEnv(yamlContent: string): any; //# sourceMappingURL=parser.d.ts.map