/** * Global Settings Manager for NCP * Manages user preferences in ~/.ncp/settings.json */ export interface ConfirmBeforeRunSettings { enabled: boolean; modifierPattern: string; vectorThreshold: number; approvedTools: string[]; } export interface LogRotationSettings { enabled: boolean; maxDebugFiles: number; maxProtocolLines: number; } export interface GlobalSettings { confirmBeforeRun: ConfirmBeforeRunSettings; logRotation: LogRotationSettings; enableCodeMode: boolean; enableSkills: boolean; enablePhotonRuntime: boolean; } /** * Default settings - confirmBeforeRun is ENABLED by default * Users see the confirmation dialog first, then can turn it off if they want */ export declare const DEFAULT_SETTINGS: GlobalSettings; /** * Load global settings * Returns default settings if file doesn't exist * Respects NCP_CONFIRM_BEFORE_RUN environment variable from extension settings */ export declare function loadGlobalSettings(): Promise; /** * Save global settings */ export declare function saveGlobalSettings(settings: GlobalSettings): Promise; /** * Update confirm-before-run settings */ export declare function updateConfirmBeforeRunSettings(updates: Partial): Promise; /** * Add tool to whitelist (user clicked "Approve Always") */ export declare function addToolToWhitelist(toolIdentifier: string): Promise; /** * Check if tool is in whitelist */ export declare function isToolWhitelisted(toolIdentifier: string): Promise; /** * Remove tool from whitelist */ export declare function removeToolFromWhitelist(toolIdentifier: string): Promise; //# sourceMappingURL=global-settings.d.ts.map