import type { PreferencesPlugin, ConfigureOptions, GetOptions, GetResult, SetOptions, RemoveOptions, KeysResult } from './definitions'; /** * PreferencesHuawei implements the same PreferencesPlugin interface as * @capacitor/preferences, routing calls through the Huawei JS Bridge. * * Data is stored in HarmonyOS native `preferences` storage, which is * persistent and not subject to the periodic localStorage clears the OS * may perform on WebViews. Stored data is cleared when the app is * uninstalled. * * The `group` from configure() maps to the native preferences store name * (default 'CapacitorStorage'), mirroring how the Android implementation * maps group -> SharedPreferences. */ export declare class PreferencesHuawei implements PreferencesPlugin { private bridge; constructor(); configure(options: ConfigureOptions): Promise; get(options: GetOptions): Promise; /** * Set a value. Note: the native side removes the key when the value * is empty (cookie-like semantics) instead of storing an empty string. */ set(options: SetOptions): Promise; remove(options: RemoveOptions): Promise; clear(): Promise; keys(): Promise; }