@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
31 lines • 1.47 kB
TypeScript
import Transport from "@ledgerhq/hw-transport";
import type { Bridge } from "@ledgerhq/types-live";
import { SolanaSigner } from "@ledgerhq/coin-solana/signer";
import { SolanaAccount, Transaction, TransactionStatus } from "@ledgerhq/coin-solana/types";
import type { Resolver } from "../../hw/getAddress/types";
import { DeviceManagementKit } from "@ledgerhq/device-management-kit";
export declare function setSolanaLdmkEnabled(enabled: boolean): void;
export declare function getSolanaSignerInstance(transport: Transport & Partial<{
dmk: DeviceManagementKit;
sessionId: string;
}>): SolanaSigner;
declare const bridge: Bridge<Transaction, SolanaAccount, TransactionStatus>;
declare const messageSigner: {
signMessage: import("../../hw/signMessage/types").SignMessage;
};
declare const resolver: Resolver;
declare const cliTools: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferAccounts: (mainAccount: import("@ledgerhq/types-live").Account, opts: Record<string, string>) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
mainAccount: import("@ledgerhq/types-live").Account;
transaction: Transaction;
}>, opts: Partial<Record<string, string>>) => Promise<Transaction[]>;
};
export { bridge, cliTools, messageSigner, resolver };
//# sourceMappingURL=setup.d.ts.map