/** * Configure Command Types * * Type definitions and constants for the configure command. */ /** * Configure command options from Commander */ export interface ConfigureOptions { /** Read/write global config (~/.specforge/config.json) */ global?: boolean; /** Remove a configuration key */ unset?: string; } /** * Configuration scope */ export type ConfigScope = 'global' | 'project'; /** * Valid configuration keys by scope */ export declare const VALID_KEYS: Record; /** * All valid configuration keys (union of both scopes) */ export declare const ALL_VALID_KEYS: readonly ["format", "projectId", "specificationId", "autoSetContext", "defaultProjectId"]; /** * Valid configuration key type */ export type ValidConfigKey = (typeof ALL_VALID_KEYS)[number]; /** * Configuration key metadata */ export interface ConfigKeyMeta { /** Human-readable description */ description: string; /** Valid scopes for this key */ scopes: ConfigScope[]; /** Valid values (if restricted) */ validValues?: string[]; /** Whether the value should be masked in output */ masked?: boolean; /** Value type after parsing */ type: 'string' | 'boolean'; } /** * Configuration key metadata map */ export declare const CONFIG_KEY_META: Record; /** * Key validator function type */ export type KeyValidator = (value: string) => boolean; /** * Key validators for values that need validation */ export declare const KEY_VALIDATORS: Partial>; /** * Value parser function type */ export type ValueParser = (value: string) => unknown; /** * Value parsers for converting string input to proper types */ export declare const VALUE_PARSERS: Partial>; /** * Configuration display entry */ export interface ConfigDisplayEntry { /** Configuration key */ key: string; /** Resolved value */ value: unknown; /** Source of the value */ source: string; /** Whether to mask the value */ masked?: boolean; } /** * Validation result */ export interface ValidationResult { /** Whether the validation passed */ valid: boolean; /** Error message if validation failed */ error?: string; /** Hint for valid values */ hint?: string; } /** * Check if a key is valid for the given scope */ export declare function isValidKeyForScope(key: string, scope: ConfigScope): boolean; /** * Get validator for a key */ export declare function getValidator(key: string): KeyValidator | undefined; /** * Get parser for a key */ export declare function getParser(key: string): ValueParser | undefined; /** * Parse and validate a configuration value */ export declare function parseConfigValue(key: string, value: string): { parsed: unknown; valid: boolean; error?: string; }; //# sourceMappingURL=configure.types.d.ts.map