import { type Deferred, type EFirmwareType } from '@onekeyfe/hd-shared'; import { BaseMethod } from './BaseMethod'; import type { Features } from '../types'; import type { FirmwareArtifactReader, FirmwareArtifactReference } from '../types/api/firmwareUpdate'; import type { FirmwareUpdatePreparedPlan } from '../types/api/firmwareUpdatePreparedPlan'; type Params = { binary?: ArrayBuffer; artifact?: FirmwareArtifactReference; hostBindingGeneration?: number; resourceEntries?: Array<{ entryName: string; artifact: FirmwareArtifactReference; }>; artifactReader?: FirmwareArtifactReader; preparedPlan?: FirmwareUpdatePreparedPlan; platform?: FirmwareUpdatePreparedPlan['platform']; version?: number[]; updateType: 'firmware' | 'ble'; forcedUpdateRes?: boolean; isUpdateBootloader?: boolean; firmwareType?: EFirmwareType; }; export default class FirmwareUpdateV2 extends BaseMethod { checkPromise: Deferred | null; init(): void; postTipMessage: (message: string) => void; private _promptDeviceInBootloaderForWebDevice; checkDeviceToBootloader(connectId: string | undefined): void; private _checkDeviceInBootloaderMode; isEnteredManuallyBoot(): boolean; isSupportResourceUpdate(updateType: string): boolean; checkVersionForCopyTouchResource(features: Features | undefined, firmwareType: EFirmwareType): void; run(): Promise; } export {}; //# sourceMappingURL=FirmwareUpdateV2.d.ts.map