@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
27 lines • 1.13 kB
TypeScript
import Transport from "@ledgerhq/hw-transport";
import { Observable } from "rxjs";
export declare enum ToggleTypeP2 {
EnterChecking = 0,
ExitChecking = 1
}
export type ToggleOnboardingEarlyCheckCmdEvent = {
type: "success";
};
/**
* During the onboarding, makes the device enter or exit the early security check steps
*
* This command only puts (or moves out) the device to the state/step of the early security check.
* It does not starts any "security checks".
*
* This new “checking” APDU is only supported in WELCOME and WELCOME_STEP2 onboarding state.
* This command will throw an error if the device is not in one of those 2 onboarding state.
*
* @param transport a Transport instance
* @param p2 the APDU p2 value limited to ToggleTypeP2 enum values representing enter or exit
* @returns An observable that emits a success event. Otherwise throws an error.
*/
export declare function toggleOnboardingEarlyCheckCmd({ transport, p2, }: {
transport: Transport;
p2: ToggleTypeP2;
}): Observable<ToggleOnboardingEarlyCheckCmdEvent>;
//# sourceMappingURL=toggleOnboardingEarlyCheck.d.ts.map