@ledgerhq/coin-tron
Version:
Ledger Tron Coin integration
52 lines • 1.48 kB
TypeScript
import type { Account, AccountLike, AccountLikeArray } from "@ledgerhq/types-live";
import { Observable } from "rxjs";
import type { Transaction } from "../types";
declare const options: ({
name: string;
alias: string;
type: StringConstructor;
desc: string;
multiple?: undefined;
} | {
name: string;
type: StringConstructor;
desc: string;
alias?: undefined;
multiple?: undefined;
} | {
name: string;
type: StringConstructor;
multiple: boolean;
desc: string;
alias?: undefined;
})[];
declare function inferAccounts(account: Account, opts: Record<string, any>): AccountLikeArray;
declare const tronSuperRepresentative: {
args: ({
name: string;
desc: string;
type: NumberConstructor;
} | {
name: string;
desc: string;
type: StringConstructor;
})[];
job: ({ max, format, }: Partial<{
max: number | null | undefined;
format: "json" | "default";
}>) => Observable<string>;
};
export type CliTools = {
options: typeof options;
inferAccounts: typeof inferAccounts;
inferTransactions: (transactions: Array<{
account: AccountLike;
transaction: Transaction;
}>, opts: Record<string, any>, { inferAmount }: any) => Transaction[];
commands: {
tronSuperRepresentative: typeof tronSuperRepresentative;
};
};
export default function makeCliTools(): CliTools;
export {};
//# sourceMappingURL=cli.d.ts.map