import { BluzelleConfig } from "./types/BluzelleConfig"; import { GasInfo } from "./types/GasInfo"; import { AccountResult } from "./types/cosmos/AccountResult"; import { CommunicationService, WithTransactionsOptions } from "./services/CommunicationService"; import { MessageResponse, TxCreateNftResponse } from "./types/MessageResponse"; import { LeaseInfo } from "./types/LeaseInfo"; import { TxCountResult, TxGetLeaseResult, TxGetNShortestLeasesResult, TxHasResult, TxKeysResult, TxReadResult, TxResult } from "./types/TxResult"; interface ABCIResponse { height: number; result: T; } export interface SearchOptions { page?: number; limit?: number; reverse?: boolean; } interface TransactionResponse { height: string; txhash: string; raw_log: string; logs: unknown[]; gas_wanted: string; gas_used: string; tx: { type: string; value: { msg: [ { type: string; value: unknown; } ]; fee: { amount: [ { denom: string; amount: string; } ]; gas: string; }; signatures: [ { pub_key: { type: string; value: string; }; signature: string; } ]; memo: string; }; }; timestamp: string; } export declare const mnemonicToAddress: (mnemonic: string) => string; export interface CreateNftParams { id: string; hash: string; vendor: string; userId: string; mime: string; meta: string; size: number; gasInfo: GasInfo; } export declare type SigningAgentFn = (service: any, cosmos: any, stdSignMsg: any) => Promise; export declare const SigningAgents: { EXTENSION: (service: any, cosmos: any, stdSignMsg: any) => Promise<{ tx: { msg: any; fee: any; signatures: { account_number: any; sequence: any; signature: any; pub_key: any; }[]; memo: any; }; mode: string; }>; INTERNAL: (service: any, cosmos: any, stdSignMsg: any) => Promise; }; export declare class API { #private; cosmos: any; address: string; mnemonic: string; chainId: string; signingAgent: SigningAgentFn; uuid: string; url: string; config: BluzelleConfig; communicationService: CommunicationService; constructor(config: BluzelleConfig); withTransaction(fn: () => any, { memo }?: WithTransactionsOptions): Promise>; setMaxMessagesPerTransaction(count: number): void; account(address?: string): Promise; isExistingAccount(): Promise; count(): Promise; create(key: string, value: string, gasInfo: GasInfo, leaseInfo?: LeaseInfo): Promise; createNft(params: CreateNftParams): Promise; createProposal(amount: number, title: string, description: string, gasInfo: GasInfo): Promise<{ id: any; }>; depositToProposal(id: string, amount: number, title: string, description: string, gasInfo: GasInfo): Promise>; delegate(valoper: string, amount: number, gasInfo: GasInfo): Promise>; delete(key: string, gasInfo: GasInfo): Promise; deleteAll(gasInfo: GasInfo): Promise; getAddress(): string; getLease(key: string): Promise; generateBIP39Account: (entropy?: string) => string; getNShortestLeases(count: number): Promise<{ key: string; lease: number; }[]>; getTx(txhash: string): Promise; getBNT({ ubnt, address }?: { ubnt?: boolean; address?: string; }): Promise; has(key: string): Promise; keys(): Promise; keyValues(): Promise<{ key: string; value: string; }[]>; mint(address: string, gasInfo: GasInfo): Promise; multiUpdate(keyValues: { key: string; value: string; }[], gasInfo: GasInfo): Promise; myKeys(): Promise; query(queryString: string): Promise; abciQuery(method: string, data?: unknown): Promise>; owner(key: string): Promise; read(key: string, prove?: boolean): Promise; rename(key: string, newKey: string, gasInfo: GasInfo): Promise; renewLease(key: string, gasInfo: GasInfo, leaseInfo: LeaseInfo): Promise; renewLeaseAll(gasInfo: GasInfo, leaseInfo?: LeaseInfo): Promise; search(searchString: string, options?: SearchOptions): Promise<{ key: string; value: string; }[]>; sendMessage(message: any, gasInfo: GasInfo): Promise>; taxInfo(): Promise; txCount(gasInfo: GasInfo): Promise; txGetLease(key: string, gasInfo: GasInfo): Promise; txGetNShortestLeases(n: number, gasInfo: GasInfo): Promise; txHas(key: string, gasInfo: GasInfo): Promise; txKeys(gasInfo: GasInfo): Promise; txKeyValues(gasInfo: GasInfo): Promise; txRead(key: string, gasInfo: GasInfo): Promise; undelegate(valoper: string, amount: number, gasInfo: GasInfo): Promise>; update(key: string, value: string, gasInfo: GasInfo, leaseInfo?: LeaseInfo): Promise; upsert(key: string, value: string, gasInfo: GasInfo, leaseInfo?: LeaseInfo): Promise; version(): Promise; withdrawRewards(valoper: string, gasInfo: GasInfo): Promise; transferTokensTo(toAddress: string, amount: number, gasInfo: GasInfo, { ubnt, memo }?: { ubnt?: boolean; memo?: string; }): Promise; } export {}; //# sourceMappingURL=API.d.ts.map