import { EDeviceType, EFirmwareType } from '@onekeyfe/hd-shared'; import type { AssetsMap, ConnectSettings, DeviceTypeMap, Features, IDeviceBLEFirmwareStatus, IDeviceFirmwareStatus, IFirmwareReleaseInfo, ITransportStatus, IVersionArray } from '../types'; export declare const FIRMWARE_FIELDS: readonly ["firmware", "firmware-v1", "firmware-v2", "firmware-v8", "firmware-btc-v8"]; export type IFirmwareField = (typeof FIRMWARE_FIELDS)[number]; export type ProtocolV1MessageSchema = 'v1CurrentSchema' | 'v1LegacySchema'; export type ProtobufMessageSchema = ProtocolV1MessageSchema | 'v2Schema'; export default class DataManager { static deviceMap: DeviceTypeMap & { [k: string]: NonNullable | undefined; }; static assets: AssetsMap | null; static settings: ConnectSettings; static messages: { [schema in ProtobufMessageSchema]: JSON; }; static lastCheckTimestamp: number; static protocolV2ResourcesConfigError: Error | undefined; private static protocolV2NeoResourcesConfigError; static getFirmwareStatus: (features: Features, firmwareType: EFirmwareType) => IDeviceFirmwareStatus; static getSysResourcesLatestRelease: ({ features, forcedUpdateRes, firmwareType, }: { features: Features; forcedUpdateRes?: boolean | undefined; firmwareType: EFirmwareType; }) => string | undefined; static getSysFullResource: (features: Features, firmwareType: EFirmwareType) => string | undefined; static getBootloaderResource: (features: Features, firmwareType: EFirmwareType) => string | undefined; static getBootloaderTargetVersion: (features: Features, firmwareType: EFirmwareType) => IVersionArray | undefined; static getBootloaderRelatedFirmwareVersion: (features: Features, firmwareType: EFirmwareType) => IVersionArray | undefined; static getFirmwareChangelog: (features: Features, firmwareType: EFirmwareType) => { "zh-CN": string; "en-US": string; }[]; static getFirmwareLatestRelease: (features: Features, firmwareType: EFirmwareType) => IFirmwareReleaseInfo | undefined; static getBLEFirmwareStatus: (features: Features) => IDeviceBLEFirmwareStatus; static getBleFirmwareChangelog: (features: Features) => { "zh-CN": string; "en-US": string; }[]; static getBleFirmwareLatestRelease: (features: Features) => import("../types").IBLEFirmwareReleaseInfo | undefined; static getTransportStatus: (localVersion: string) => ITransportStatus; static getBridgeChangelog: () => { "zh-CN": string; "en-US": string; } | undefined; private static enrichFirmwareReleaseInfo; private static enrichProtocolV2FirmwareReleaseInfo; static load(settings: ConnectSettings): Promise; private static applyRemoteConfig; static updateEnv(newEnv: ConnectSettings['env']): void; static checkAndReloadData(): Promise; static forceReloadData({ requireResources, resourceDeviceType, }?: { requireResources?: boolean; resourceDeviceType?: EDeviceType.Pro2 | EDeviceType.Neo; }): Promise; static getProtocolV2ResourceSource(release: IFirmwareReleaseInfo | undefined): import("../types").IProtocolV2ResourceSource | undefined; static getProtobufMessages(schema?: ProtobufMessageSchema): JSON; static getSettings(key?: undefined): ConnectSettings; static getSettings(key: T): ConnectSettings[T]; static isBleConnect: (env: ConnectSettings['env']) => boolean; static isDesktopWebUsb: (env: ConnectSettings['env']) => boolean; static isBrowserWebUsb: (env: ConnectSettings['env']) => boolean; } //# sourceMappingURL=DataManager.d.ts.map