UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

28 lines 989 B
/** * Copyright IBM Corp. 2024, 2025 */ /** * Manages all the variable contexts with unique context. */ import { EnvVar, VariableContext } from './variable-context.js'; type EnvInput = Record<string, any> | Record<string, EnvVar> | EnvVar[] | Array<Record<string, any>>; export declare class ContextManager { private contexts; private globalContext; createContext(contextId: string): VariableContext; getContext(contextId: string): VariableContext; deleteContext(contextId: string): void; listContexts(): string[]; getGlobalContext(): VariableContext; clearAll(): void; loadEnv(contextId: string, envVars: EnvInput): void; resolve(contextId: string, input: any): any; resolveExpression(contextId: string, input: any): any; private resolveValue; private replaceRecursiveExpression; private safeStringify; private resolvePath; } export declare const VCM: ContextManager; export {}; //# sourceMappingURL=context-manager.d.ts.map