/** * ADRFlow Configuration * * Handles configuration loading and validation. * * @module adrflow/utils/config */ import { z } from 'zod'; /** * Configuration schema */ declare const ConfigSchema: z.ZodObject<{ /** Path to the .mv2 storage file */ storagePath: z.ZodDefault; /** Default source type for new ADRs */ defaultSourceType: z.ZodDefault>; /** Log level */ logLevel: z.ZodDefault>; /** Log format */ logFormat: z.ZodDefault>; /** Server name shown to MCP clients */ serverName: z.ZodDefault; /** Server version */ serverVersion: z.ZodDefault; }, "strip", z.ZodTypeAny, { storagePath: string; defaultSourceType: "claude_session" | "cursor_session" | "manual" | "imported"; logLevel: "error" | "debug" | "info" | "warn"; logFormat: "text" | "json"; serverName: string; serverVersion: string; }, { storagePath?: string | undefined; defaultSourceType?: "claude_session" | "cursor_session" | "manual" | "imported" | undefined; logLevel?: "error" | "debug" | "info" | "warn" | undefined; logFormat?: "text" | "json" | undefined; serverName?: string | undefined; serverVersion?: string | undefined; }>; export type Config = z.infer; /** * Default configuration */ export declare const DEFAULT_CONFIG: Config; /** * Loads configuration from files and environment * * Priority (highest to lowest): * 1. Environment variables (ADRFLOW_*) * 2. Local config file (.adrflow.json, etc.) * 3. Global config file (~/.config/adrflow/config.json) * 4. Default values */ export declare function loadConfig(cwd?: string): Promise; /** * Gets a config value from environment or default */ export declare function getEnvConfig(key: K, defaultValue: Config[K]): Config[K]; export {}; //# sourceMappingURL=config.d.ts.map