/** * General settings component. * Uses pi-tui's SettingsList for a clean overlay with * notifications, YOLO mode, and thinking level configuration. * * Changes apply immediately — Esc closes the panel. */ import { Box } from '@mariozechner/pi-tui'; import type { Focusable } from '@mariozechner/pi-tui'; import type { StorageBackend } from '../../onboarding/settings.js'; import type { NotificationMode } from '../notify.js'; export interface SettingsConfig { notifications: NotificationMode; yolo: boolean; thinkingLevel: string; currentModelId: string; escapeAsCancel: boolean; quietMode: boolean; quietModeMaxToolPreviewLines: number; storageBackend: StorageBackend; pgConnectionString: string; libsqlUrl: string; } export interface SettingsCallbacks { onNotificationsChange: (mode: NotificationMode) => void; onYoloChange: (enabled: boolean) => void; onThinkingLevelChange: (level: string) => void; onEscapeAsCancelChange: (enabled: boolean) => void; onQuietModeChange: (enabled: boolean) => void; onQuietModeMaxToolPreviewLinesChange: (lines: number) => void; onStorageBackendChange: (backend: StorageBackend, connectionUrl?: string) => void; onApiKeys?: () => void; onClose: () => void; } export declare class SettingsComponent extends Box implements Focusable { private settingsList; private _focused; get focused(): boolean; set focused(value: boolean); constructor(config: SettingsConfig, callbacks: SettingsCallbacks); handleInput(data: string): void; } //# sourceMappingURL=settings.d.ts.map