import type { DeviceInfoGet, DeviceSEInfo, DeviceStatus, ProtocolInfo, ProtocolV2DeviceInfo } from '@onekeyfe/hd-transport'; import type { DeviceCommands } from '../../device/DeviceCommands'; export type { ProtocolV2DeviceInfo }; export type { DeviceFirmwareImageInfo as ProtocolV2FirmwareImageInfo } from '@onekeyfe/hd-transport'; export type { DeviceSEInfo as ProtocolV2SEInfo } from '@onekeyfe/hd-transport'; export type ProtocolV2SeStateLabel = 'BOOT' | 'APP_FACTORY' | 'APP'; export declare const getProtocolV2SeState: (se?: DeviceSEInfo) => ProtocolV2SeStateLabel | null; export declare const getProtocolV2SeType: (se?: DeviceSEInfo) => string | null; export type ProtocolV2RuntimeMode = 'normal' | 'bootloader' | 'romloader'; export type ProtocolV2ProtocolInfo = ProtocolInfo & { protobuf_definition?: string | null; }; export declare const isLegacyProtocolV2ProtocolInfo: (protocolInfo: ProtocolInfo) => protocolInfo is ProtocolInfo & { protobuf_definition?: string | null | undefined; } & { protobuf_definition: string | null; }; export type ProtocolV2BuildFingerprint = { binary: 'application' | 'bootloader' | 'romloader'; version: string; commit: string; environment: 'PROD' | 'DEV'; buildType: 'DEBUG' | 'RELEASE'; }; export declare const parseProtocolV2BuildFingerprint: (buildFingerprint: string | null | undefined) => ProtocolV2BuildFingerprint | null; export declare const getProtocolV2RuntimeMode: (protocolInfo: ProtocolInfo, deviceInfo?: ProtocolV2DeviceInfo) => ProtocolV2RuntimeMode | undefined; export declare const PROTOCOL_V2_DEVICE_STATUS_GET_MESSAGE_TYPE = 60602; export declare const supportsProtocolV2Message: (protocolInfo: ProtocolInfo, messageType: number) => boolean; export declare const PROTOCOL_V2_FEATURES_DEVICE_INFO_REQUEST: { targets: { hw: boolean; main_mcu: boolean; coprocessor: boolean; }; types: { version: boolean; specific: boolean; }; }; export declare const PROTOCOL_V2_VERSIONS_DEVICE_INFO_REQUEST: { targets: { hw: boolean; main_mcu: boolean; coprocessor: boolean; se1: boolean; se2: boolean; se3: boolean; se4: boolean; }; types: { version: boolean; specific: boolean; }; }; export declare const PROTOCOL_V2_FULL_DEVICE_INFO_REQUEST: { targets: { hw: boolean; main_mcu: boolean; coprocessor: boolean; se1: boolean; se2: boolean; se3: boolean; se4: boolean; }; types: { version: boolean; build_id: boolean; hash: boolean; specific: boolean; }; }; export declare const PROTOCOL_V2_DEVICE_INFO_REQUEST: { targets: { hw: boolean; main_mcu: boolean; coprocessor: boolean; se1: boolean; se2: boolean; se3: boolean; se4: boolean; }; types: { version: boolean; build_id: boolean; hash: boolean; specific: boolean; }; }; export declare const PROTOCOL_V2_DEVICE_INFO_TIMEOUT_MS: number; export declare function requestProtocolV2ProtocolInfo({ commands, timeoutMs, }: { commands: DeviceCommands; timeoutMs?: number; }): Promise; export declare function requestProtocolV2DeviceInfo({ commands, timeoutMs, request, }: { commands: DeviceCommands; timeoutMs?: number; request?: DeviceInfoGet; }): Promise; export declare function requestProtocolV2DeviceStatus({ commands, timeoutMs, }: { commands: DeviceCommands; timeoutMs?: number; }): Promise; //# sourceMappingURL=features.d.ts.map