import type { AgentConfig } from './types.js'; /** * Test seam: re-arm the shadowing warning. */ export declare function resetShadowWarningForTesting(): void; /** * Load configuration from file or user config, with environment variable overrides. * If setConfigInMemory() has been called (config-from-vault mode), returns the * in-memory config instead of loading from disk. * * Environment variables: * - ZNVAULT_URL: Override vault URL * - ZNVAULT_TENANT_ID: Override tenant ID * - ZNVAULT_API_KEY: Override API key (preferred over config file) * - ZNVAULT_USERNAME: Override username * - ZNVAULT_PASSWORD: Override password (preferred over config file) * - ZNVAULT_INSECURE: Set to "true" to skip TLS verification * * TLS environment variables (for HTTPS health server): * - ZNVAULT_TLS_ENABLED: Set to "true" to enable HTTPS health server * - ZNVAULT_TLS_CERT_PATH: Path to TLS certificate (PEM format) * - ZNVAULT_TLS_KEY_PATH: Path to TLS private key (PEM format) * - ZNVAULT_TLS_HTTPS_PORT: HTTPS port (default: 9443) * - ZNVAULT_TLS_KEEP_HTTP: Set to "false" to disable HTTP server when HTTPS enabled * - ZNVAULT_CA_CERT_PATH: Custom CA certificate for vault connection */ export declare function loadConfig(): AgentConfig; /** * Get a specific config value */ export declare function getConfig(key: K): AgentConfig[K]; /** * Check if agent is configured * Considers both config file and environment variables. * Bootstrap tokens count as valid auth (will be exchanged for API key on startup). */ export declare function isConfigured(): boolean; /** * Get config file path for display */ export declare function getConfigPath(): string; /** * Set the in-memory config for config-from-vault mode. * When set, loadConfig() returns this instead of loading from disk. * This allows the agent to run with config fetched from vault without * persisting it to disk. */ export declare function setConfigInMemory(config: AgentConfig): void; /** * Clear the in-memory config, reverting to disk-based config loading. */ export declare function clearConfigInMemory(): void; /** * Check if in-memory config is currently active. */ export declare function isConfigInMemory(): boolean; //# sourceMappingURL=loader.d.ts.map