import { type EFirmwareType } from '@onekeyfe/hd-shared'; import { type DeviceSessionPinType, type ProtocolType } from '@onekeyfe/hd-transport'; import type { Device } from '../device/Device'; import type DeviceConnector from '../device/DeviceConnector'; import type { DeviceFirmwareRange } from '../types'; import type { CoreMessage } from '../events'; import type { UnlockPolicy } from '../protocols/protocol-v2/unlockPolicy'; import type { ProtocolV2InteractionDescriptor } from '../protocols/protocol-v2/uiInteraction'; import type { ProtocolV2UnlockContext } from '../protocols/protocol-v2/unlockPolicyRunner'; import type { RequestContext } from '../utils/tracing'; import type { CoreContext } from '../core'; export type { UnlockPolicy } from '../protocols/protocol-v2/unlockPolicy'; export type ProtocolV2UiMode = 'auto' | 'none'; export declare abstract class BaseMethod { abortSignal?: AbortSignal; responseID: number; device: Device; params: Params; connectId?: string; deviceId?: string; deviceState?: string; name: string; instanceId: string; sdkInstanceId?: string; requestContext?: RequestContext; payload: Record; connector?: DeviceConnector; useDevice: boolean; allowDeviceMode: string[]; requireDeviceMode: string[]; shouldEnsureConnected: boolean; checkDeviceId: boolean; useDevicePassphraseState: boolean; skipForceUpdateCheck: boolean; allowUsePreInitialize: boolean; isPreWarmSignal: boolean; preWarmTtl: number; getPreWarmKey(): string; strictCheckDeviceSupport: boolean; unlockPolicy: UnlockPolicy; protocolV2PreUnlockPinType?: DeviceSessionPinType; protocolV2UnlockContext?: ProtocolV2UnlockContext; getSupportedProtocols(): readonly ProtocolType[]; supportsProtocol(protocol: ProtocolType): boolean; assertProtocolSupported(protocol: ProtocolType, firmwareType: EFirmwareType): void; protocolV2UiInteraction?: ProtocolV2InteractionDescriptor; protocolV2UiMode: ProtocolV2UiMode; protected throwIfAborted(): void; postMessage: (message: CoreMessage) => void; context?: CoreContext; temporarySafetyCheckPrompted: boolean; constructor(message: { id?: number; payload: any; }); abstract init(): void; abstract run(): Promise; getVersionRange(): DeviceFirmwareRange; setContext(context: CoreContext): void; setDevice(device: Device): void; checkFirmwareRelease(): void; checkDeviceSupportFeature(): void; protected checkFeatureVersionLimit(checkCondition: () => boolean, getVersionRange: () => DeviceFirmwareRange, options?: { strictCheckDeviceSupport?: boolean; }): void; private shouldPromptSafetyCheckForEvmLedgerLegacyPath; checkSafetyLevelOnTestNet(): Promise; dispose(): void; postPreviousAddressMessage: (data: { address?: string; path?: string; }) => void; } //# sourceMappingURL=BaseMethod.d.ts.map