/** * MCP tool: read/write CrossPad settings via the running simulator. */ /** What a setting can hold. Booleans travel as 0/1 — the wire format is int-only. */ export type SettingsValue = number | boolean; export interface SettingsGetResult { success: boolean; category?: string; settings?: Record; error?: string; } export interface SettingsSetResult { success: boolean; key?: string; value?: SettingsValue; error?: string; } /** * The categories `settings_get` accepts, one per settings group that * CrosspadSettings actually declares. * * v9 hardcoded this list and it drifted from the header within a release. The * groups now come from the same parse that backs `crosspad://settings/schema`, * so a group added to the firmware is a category here without anyone editing * this file. */ export declare function settingsCategories(): string[]; /** * Read settings from the running simulator. * @param category "all" or one of `settingsCategories()` */ export declare function crosspadSettingsGet(category?: string): Promise; /** * Write a single setting on the running simulator. * @param key Dotted key name (e.g. "lcd_brightness", "keypad.eco_mode", "vibration.enable") * @param value Number, or boolean for the `bool` fields of the schema */ export declare function crosspadSettingsSet(key: string, value: SettingsValue): Promise;