@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
11 lines (10 loc) • 554 B
TypeScript
/**
* Deep-walk the incoming config and restore `${VAR}` references from the
* pre-substitution parsed config wherever the resolved value matches.
*
* @param incoming - The resolved config about to be written
* @param parsed - The pre-substitution parsed config (from the current file on disk)
* @param env - Environment variables for verification
* @returns A new config object with env var references restored where appropriate
*/
export declare function restoreEnvVarRefs(incoming: unknown, parsed: unknown, env?: NodeJS.ProcessEnv): unknown;