/** * @file Config Context * @description Context for configuration management (Fast Refresh compliant). */ /** * Configuration value type */ export type ConfigValue = string | number | boolean | null | ConfigValue[] | { [key: string]: ConfigValue; }; /** * Configuration record */ export type ConfigRecord = Record; /** * Config context value */ export interface ConfigContextValue { config: T; get: (path: string, defaultValue?: V) => V; set: (path: string, value: ConfigValue) => void; has: (path: string) => boolean; reset: () => void; reload: () => Promise; subscribe: (callback: (event: ConfigChangeEvent) => void) => () => void; isLoading: boolean; error: Error | null; } /** * Configuration change event */ export interface ConfigChangeEvent { type: 'change' | 'reset' | 'reload'; changes?: ConfigChange[]; } /** * Configuration change */ export interface ConfigChange { path: string; oldValue: ConfigValue; newValue: ConfigValue; } /** * Config context - extracted for Fast Refresh compliance */ export declare const ConfigContext: import('react').Context | null>;