import { DeviceModelId } from "@ledgerhq/devices"; import Transport from "@ledgerhq/hw-transport"; //#region src/Sui.d.ts type GetPublicKeyResult = { publicKey: Uint8Array; address: Uint8Array; }; type SignTransactionResult = { signature: Uint8Array; }; type GetVersionResult = { major: number; minor: number; patch: number; }; type Resolution = { deviceModelId?: DeviceModelId | undefined; certificateSignatureKind?: 'prod' | 'test' | undefined; tokenAddress?: string; tokenId?: string; }; type AppConfig = { blindSigningEnabled: boolean; version: string; }; /** * Sui API * * @example * import Sui from "@mysten/ledgerjs-hw-app-sui"; * const sui = new Sui(transport) */ declare class Sui { #private; transport: Transport; constructor(transport: Transport, scrambleKey?: string, verbose?: boolean); /** * Retrieves the public key associated with a particular BIP32 path from the Ledger app. * * @param path - the path to retrieve. * @param displayOnDevice - whether or not the address should be displayed on the device. * */ getPublicKey(path: string, displayOnDevice?: boolean): Promise; /** * Sign a transaction with the key at a BIP32 path. * * @param txn - The transaction bytes to sign. * @param path - The path to use when signing the transaction. * @param options - Additional options used for clear signing purposes. * @param resolution - Additional data for token clear signing purposes. */ signTransaction(path: string, txn: Uint8Array, options?: { bcsObjects: Uint8Array[]; }, resolution?: Resolution): Promise; /** * Retrieve the app version on the attached Ledger device. */ getVersion(): Promise; } //#endregion export { AppConfig, GetPublicKeyResult, GetVersionResult, Resolution, SignTransactionResult, Sui as default }; //# sourceMappingURL=Sui.d.mts.map