import { Enum_SafetyCheckLevel } from '@onekeyfe/hd-transport'; import type { IDeviceType } from '../types'; import type { DeviceSettingsParams } from '../types/api/deviceSettings'; import type { SafetyCheckLevel } from '@onekeyfe/hd-transport'; export type DeviceSettingsProtocol = 'V1' | 'V2'; export type DeviceSettingsField = keyof DeviceSettingsParams; export declare const DEVICE_SETTINGS_SHARED_FIELDS: readonly ["language", "label", "usePassphrase", "autoLockDelayMs", "autoShutdownDelayMs", "hapticFeedback", "bluetoothEnabled"]; export declare const DEVICE_SETTINGS_V1_ONLY_FIELDS: readonly ["homescreen", "passphraseSource", "displayRotation", "passphraseAlwaysOnDevice", "safetyChecks", "experimentalFeatures", "changeBrightness"]; export declare const DEVICE_SETTINGS_V2_ONLY_FIELDS: readonly ["brightness", "airgapMode", "animationEnabled", "tapToWake", "deviceNameDisplayEnabled", "fidoEnabled", "usbLockEnabled", "randomKeypad"]; export declare const DEVICE_SETTINGS_NEVER_TIMEOUT_MS = 268435456; export declare const PROTOCOL_V2_NEVER_TIMEOUT_MS = 268435456; export declare const normalizeSafetyCheckLevel: (value: SafetyCheckLevel | null | undefined) => Enum_SafetyCheckLevel | null | undefined; export declare const LANGUAGE_LABELS: { readonly en: "English"; readonly zh_cn: "简体中文"; readonly zh_hk: "繁體中文"; readonly ja: "日本語"; readonly ko: "한국어"; readonly fr: "Français"; readonly de: "Deutsch"; readonly ru: "Russian"; readonly es: "Spanish"; readonly it: "Italiano"; readonly pt_br: "Portuguese (Brazil)"; }; export type LanguageKey = keyof typeof LANGUAGE_LABELS; export type LanguageOption = { code: LanguageKey; label: (typeof LANGUAGE_LABELS)[LanguageKey]; }; export declare const PROTOCOL_V2_LANGUAGE_BY_KEY: Record; export declare const mapLanguageToProtocolV2: (language?: string) => string | undefined; export declare const mapLanguageFromProtocolV2: (language?: string) => "en" | "zh_cn" | "zh_hk" | "ja" | "ko" | "fr" | "de" | "ru" | "es" | "it" | "pt_br" | undefined; export declare const getLanguageConfig: (deviceType: IDeviceType) => Record[]; export type DeviceSettingsDurationOption = { label: string; valueMs: number; }; export type DeviceSettingsValueOption = { label: string; value: T; }; export declare const getAutoLockOptions: (deviceType: IDeviceType, protocol: DeviceSettingsProtocol) => DeviceSettingsDurationOption[]; export declare const getAutoShutDownOptions: (deviceType: IDeviceType, protocol: DeviceSettingsProtocol) => DeviceSettingsDurationOption[]; export type DeviceSettingsCapabilities = { protocol: DeviceSettingsProtocol; supportedFields: readonly DeviceSettingsField[]; languageOptions: ReadonlyArray>; autoLockDelayOptions: readonly DeviceSettingsDurationOption[]; autoShutdownDelayOptions: readonly DeviceSettingsDurationOption[]; ranges: { brightness?: { min: number; max: number; }; }; safetyCheckOptions: ReadonlyArray>; onDeviceConfirmationFields: readonly DeviceSettingsField[]; }; export declare const getDeviceSettingsCapabilities: (deviceType: IDeviceType, protocol: DeviceSettingsProtocol) => DeviceSettingsCapabilities; //# sourceMappingURL=deviceSettings.d.ts.map