import type { PolicyOverlay, ConfidenceThresholds, OperatorConfig } from '../types/index.js'; export declare class OperatorConfigManager { private config; private changeListeners; constructor(); /** * Register a policy overlay. */ registerOverlay(overlay: PolicyOverlay): void; /** * Get an overlay by ID. */ getOverlay(overlayId: string): PolicyOverlay | undefined; /** * List all overlays. */ listOverlays(): { id: string; name: string; description: string; }[]; /** * Set the active overlay. */ setActiveOverlay(overlayId: string): boolean; /** * Get the active overlay. */ getActiveOverlay(): PolicyOverlay; /** * Remove an overlay (cannot remove default or active overlay). */ removeOverlay(overlayId: string): boolean; /** * Set a specific confidence threshold. */ setThreshold(key: keyof ConfidenceThresholds, value: number): void; /** * Set all confidence thresholds. */ setThresholds(thresholds: Partial): void; /** * Get current thresholds. */ getThresholds(): ConfidenceThresholds; /** * Reset thresholds to default. */ resetThresholds(): void; /** * Enable or disable circuit breaker. */ setCircuitBreakerEnabled(enabled: boolean): void; /** * Enable or disable tripwire injection. */ setTripwireEnabled(enabled: boolean): void; /** * Enable or disable audit logging. */ setAuditLogEnabled(enabled: boolean): void; /** * Get all feature flags. */ getFeatureFlags(): { circuitBreakerEnabled: boolean; tripwireEnabled: boolean; auditLogEnabled: boolean; }; /** * Get a snapshot of the current configuration. */ getSnapshot(): { activeOverlay: string; overlayCount: number; thresholds: ConfidenceThresholds; features: ReturnType; }; /** * Export configuration for persistence. */ export(): { overlays: PolicyOverlay[]; activeOverlay: string; thresholds: ConfidenceThresholds; features: ReturnType; }; /** * Import configuration from persistence. */ import(data: ReturnType): void; /** * Set a feature by name. Alias that routes to the appropriate setter. * @param featureName - One of 'circuitBreaker', 'tripwire', or 'auditLog' * @param enabled - Whether the feature should be enabled */ setFeature(featureName: string, enabled: boolean): void; /** * Alias for getFeatureFlags(). */ getFeatures(): { circuitBreakerEnabled: boolean; tripwireEnabled: boolean; auditLogEnabled: boolean; }; /** * Export configuration with checksum for integrity verification. * Returns serialized data and a checksum. */ exportWithChecksum(): { data: string; checksum: string; }; /** * Compute a simple checksum for the given data. */ private computeChecksum; /** * Register a listener for configuration changes. */ onChange(listener: (config: OperatorConfig) => void): () => void; /** * Notify all listeners of configuration change. */ private notifyListeners; } export declare const operatorConfig: OperatorConfigManager; //# sourceMappingURL=config.d.ts.map