/** * Purpose: Implements the extension options page state, persistence, and background synchronization handlers. * Why: Keeps operator-facing runtime settings explicit and immediately applied without extension restarts. * Docs: docs/features/feature/browser-extension-enhancement/index.md */ interface ExportResult { success: boolean; filename?: string; error?: string; } interface ClearLogResponse { success?: boolean; error?: string; } /** * Load saved options */ export declare function loadOptions(): Promise; /** * Save options to storage and notify background * ARCHITECTURE: Options page writes to storage directly (for immediate persistence), * then sends messages to background so it can update its internal state. * Background is the authoritative source of truth for actual behavior. * Example: debugMode=true in storage enables logging immediately, AND background * updates its debugMode variable so new logs use the new setting. */ export declare function saveOptions(): Promise; /** * Toggle deferral setting */ export declare function toggleDeferral(): void; /** * Toggle debug mode setting */ export declare function toggleDebugMode(): void; /** * Toggle theme between dark (default) and light */ export declare function toggleTheme(): void; /** * Test connection to server */ export declare function testConnection(): Promise; /** * Export debug log to a downloadable file */ export declare function handleExportDebugLog(): Promise; /** * Clear the debug log buffer */ export declare function handleClearDebugLog(): Promise; export {}; //# sourceMappingURL=options.d.ts.map