import BaseApp, { INSGeneric, type LedgerTransport, ResponsePayload } from '@zondax/ledger-js'; import { P2_VALUES } from './consts'; import { type ResponseAddress, type ResponsePubkey, ResponseSign } from './types'; export default class CosmosApp extends BaseApp { static _INS: { GET_VERSION: number; SIGN_SECP256K1: number; GET_ADDR_SECP256K1: number; }; static _params: { cla: number; ins: INSGeneric; p1Values: { ONLY_RETRIEVE: number; SHOW_ADDRESS_IN_DEVICE: number; }; chunkSize: number; requiredPathLengths: number[]; }; /** * Constructs a new CosmosApp instance. * @param transport - The transport instance. * @throws {Error} - If the transport is not defined. */ constructor(transport: LedgerTransport); private serializeHRP; private serializeCosmosPath; publicKey(path: string): Promise; getAddressAndPubKey(path: string, hrp: string): Promise; showAddressAndPubKey(path: string, hrp: string): Promise; static getBech32FromPK(hrp: string, pk: Buffer): `${Lowercase}1${string}`; prepareChunks_hrp(path: string, buffer: Buffer, hrp?: string): Promise[]>; signSendCosmosChunk(chunkIdx: number, chunkNum: number, chunk: Buffer, txtype?: P2_VALUES): Promise; private signImpl; sign(path: string, buffer: Buffer, hrp?: string, txtype?: P2_VALUES): Promise; }