import { generateMnemonic } from '@interchainjs/crypto'; import { AminoConverter, Encoder } from '../types/signing-client'; import { TelescopeGeneratedCodec } from '@interchainjs/types'; import { Pubkey } from "@interchainjs/amino"; import { Any } from "@interchainjs/cosmos-types"; /** * A Cosmos SDK account. * * This interface represents the common structure of all account types * in the Cosmos SDK, providing a standardized way to access account information. */ export interface Account { /** Bech32 account address */ readonly address: string; /** Public key associated with the account, or null if not set */ readonly pubkey: Pubkey | null; /** Account number for replay protection */ readonly accountNumber: number; /** Sequence number for replay protection */ readonly sequence: number; } export type PubkeyDecoderMap = Record Pubkey>; export type AccountFromAnyOptions = { readonly pubkeyDecoders?: PubkeyDecoderMap; }; /** * Takes a protobuf `Any` type and converts it to a standardized `Account` object. * * This function supports BaseAccount directly, has explicit handlers for all * vesting account types, and uses binary parsing fallback for other wrapper * account types (ModuleAccount, EthAccount, etc.). * * @param accountAny - The protobuf Any containing the encoded account * @returns A standardized Account object * @throws Error if the account type is not supported */ export declare function accountFromAny(accountAny: Any, opts?: AccountFromAnyOptions): Account; /** * from telescope generated codec to AminoConverter */ export declare function toConverter(generated: (AminoConverter | TelescopeGeneratedCodec)): AminoConverter; /** * from telescope generated codecs to AminoConverters */ export declare function toConverters(...generatedArray: (AminoConverter | TelescopeGeneratedCodec)[]): AminoConverter[]; /** * from telescope generated codec to encoder */ export declare function toEncoder(generated: (Encoder | TelescopeGeneratedCodec)): Encoder; /** * from telescope generated codecs to encoders */ export declare function toEncoders(...generatedArray: (Encoder | TelescopeGeneratedCodec)[]): Encoder[]; export { generateMnemonic }; export * from './fee';