/** * Settings screen component */ import { type ConfigSchema } from '../../config/index'; export interface SettingItem { /** Must be a known config key — typed as `keyof ConfigSchema` so adding a * setting with an unknown key is a compile error, not a silent runtime * no-op. */ key: keyof ConfigSchema; label: string; getValue: () => string | number | boolean; type: 'number' | 'select' | 'text'; min?: number; max?: number; step?: number; options?: { value: string | number | boolean; label: string; }[]; } export declare const SETTINGS: SettingItem[]; export interface SettingsState { selectedIndex: number; editing: boolean; editValue: string; } /** * Format value for display */ /** * Handle settings key * Returns: { handled: boolean, close: boolean, notify?: string } */ export declare function handleSettingsKey(key: string, ctrl: boolean, state: SettingsState): { handled: boolean; close: boolean; notify?: string; newState: SettingsState; };