/** * Purpose: Implements popup settings controls for websocket capture mode and safe log clearing actions. * Why: Keeps destructive and behavior-changing popup operations centralized with explicit UX safeguards. * Docs: docs/features/feature/browser-extension-enhancement/index.md */ /** * @fileoverview Settings Module * Handles log level, WebSocket mode, and clear logs functionality */ import type { WebSocketCaptureMode } from '../types/index.js'; /** * Handle WebSocket mode change */ export declare function handleWebSocketModeChange(mode: WebSocketCaptureMode): void; /** * Apply pre-loaded WS mode value to the selector. * Called from the orchestrator after a single batched storage read. */ export declare function applyWebSocketMode(value: unknown): void; /** * Initialize the WebSocket mode selector (self-contained async version for backward compat) */ export declare function initWebSocketModeSelector(): Promise; /** * Reset clear confirmation state (exported for testing) */ export declare function resetClearConfirm(): void; /** * Handle clear logs button click (with confirmation) */ export declare function handleClearLogs(): Promise<{ success?: boolean; error?: string; } | null>; //# sourceMappingURL=settings.d.ts.map