import type { VeryfrontConfig } from "./schemas/index.js"; import type { EnvironmentConfig } from "./environment-config.js"; /** * Runtime-specific configuration derived from environment. */ export interface RuntimeInfo { /** The runtime environment snapshot */ env: EnvironmentConfig; /** True if NODE_ENV is "production" */ isProduction: boolean; /** True if NODE_ENV is "development" */ isDevelopment: boolean; /** True if NODE_ENV is "test" or DENO_TESTING=1 */ isTest: boolean; /** True if running in CI environment */ isCI: boolean; /** True if debug mode is enabled */ isDebug: boolean; } /** * A caller-supplied project configuration combined with one environment * snapshot. Creating this value does not initialize the process singleton. */ export interface RuntimeConfig extends VeryfrontConfig { /** * Runtime-specific values computed from environment. * Use this for environment-dependent behavior. */ runtime: RuntimeInfo; } export declare const DEFAULT_CONFIG: Partial; export declare function createRuntimeConfig(fileConfig?: VeryfrontConfig, env?: EnvironmentConfig): RuntimeConfig; /** * Explicitly initialize the process-local singleton. * * This utility is intended for trusted single-tenant startup and tooling. The * hosted server does not call it with tenant configuration. */ export declare function initRuntimeConfig(fileConfig?: VeryfrontConfig): RuntimeConfig; /** * Read the opt-in process singleton, lazily creating defaults plus host * environment values when no caller initialized it. * * This does not discover or load `veryfront.config.*`. */ export declare function getRuntimeConfig(): RuntimeConfig; export declare function isRuntimeConfigInitialized(): boolean; /** * Replace the trusted process-local singleton. * * Never pass hosted request or tenant configuration to this function. */ export declare function updateRuntimeConfig(fileConfig: VeryfrontConfig): RuntimeConfig; export declare function createTestConfig(overrides?: Partial & { runtime?: { env?: Partial; }; }): RuntimeConfig; export declare function _setRuntimeConfigForTesting(config: Partial | RuntimeConfig): void; export declare function _resetRuntimeConfig(): void; //# sourceMappingURL=runtime-config.d.ts.map