@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
21 lines • 777 B
TypeScript
import Transport from "@ledgerhq/hw-transport";
import { Observable } from "rxjs";
export type UninstallAllAppsEvent = {
type: "unresponsiveDevice";
} | {
type: "uninstallAppsPermissionRequested";
} | {
type: "appsUninstalled";
};
export type Input = {
deviceId: string;
request: Record<string, unknown>;
};
/**
* Prompt the user to uninstall all applications at once in order to avoid
* having to iterate over the installed applications one by one. This avoid
* unnnecesary HSM connections, speeds up the flow and improves the UX.
*/
export declare const command: (transport: Transport) => Promise<boolean>;
export default function uninstallAllApps({ deviceId }: Input): Observable<UninstallAllAppsEvent>;
//# sourceMappingURL=uninstallAllApps.d.ts.map