/**
 * Configuration System Types
 *
 * Defines all configuration interfaces and types for the Stoneforge system.
 * Supports file-based configuration, environment variables, and CLI overrides
 * with a clear precedence hierarchy.
 */
// ============================================================================
// Configuration Source Tracking
// ============================================================================
/**
 * Source of a configuration value
 */
export const ConfigSource = {
    /** Built-in default value */
    DEFAULT: 'default',
    /** From config file */
    FILE: 'file',
    /** From environment variable */
    ENVIRONMENT: 'environment',
    /** From CLI flag */
    CLI: 'cli',
};
// ============================================================================
// Environment Variable Mapping
// ============================================================================
/**
 * Environment variable names for configuration
 */
export const EnvVars = {
    /** Default actor name */
    ACTOR: 'STONEFORGE_ACTOR',
    /** Database file path */
    DATABASE: 'STONEFORGE_DB',
    /** Config file path override */
    CONFIG: 'STONEFORGE_CONFIG',
    /** JSON output mode */
    JSON: 'STONEFORGE_JSON',
    /** Verbose/debug mode */
    VERBOSE: 'STONEFORGE_VERBOSE',
    /** Auto-export on mutations */
    SYNC_AUTO_EXPORT: 'STONEFORGE_SYNC_AUTO_EXPORT',
    /** Identity mode */
    IDENTITY_MODE: 'STONEFORGE_IDENTITY_MODE',
};
// ============================================================================
// Configuration Path Types
// ============================================================================
/**
 * Valid configuration paths (as const array for runtime validation)
 */
export const VALID_CONFIG_PATHS = [
    'actor',
    'database',
    'sync.autoExport',
    'sync.exportDebounce',
    'sync.elementsFile',
    'sync.dependenciesFile',
    'playbooks.paths',
    'tombstone.ttl',
    'tombstone.minTtl',
    'identity.mode',
    'identity.timeTolerance',
    'plugins.packages',
];
/**
 * Type guard to check if a string is a valid ConfigPath
 */
export function isValidConfigPath(value) {
    return VALID_CONFIG_PATHS.includes(value);
}
//# sourceMappingURL=types.js.map