import _m0 from "protobufjs/minimal"; import { AccountID, ContractID, TokenBalance } from "./basic_types"; import { QueryHeader } from "./query_header"; import { ResponseHeader } from "./response_header"; export declare const protobufPackage = "proto"; /** * Get the balance of a cryptocurrency account. This returns only the balance, so it is a smaller * reply than CryptoGetInfo, which returns the balance plus additional information. */ export interface CryptoGetAccountBalanceQuery { /** * Standard info sent from client to node, including the signed payment, and what kind of * response is requested (cost, state proof, both, or neither). */ header: QueryHeader | undefined; balanceSource?: { $case: "accountID"; accountID: AccountID; } | { $case: "contractID"; contractID: ContractID; } | undefined; } /** Response when the client sends the node CryptoGetAccountBalanceQuery */ export interface CryptoGetAccountBalanceResponse { /** * Standard response from node to client, including the requested fields: cost, or state proof, * or both, or neither. */ header: ResponseHeader | undefined; /** * The account ID that is being described (this is useful with state proofs, for proving to a * third party) */ accountID: AccountID | undefined; /** The current balance, in tinybars. */ balance: number; /** * [DEPRECATED] The balances of the tokens associated to the account. This field was * deprecated by HIP-367, which allowed * an account to be associated to an unlimited number of tokens. This scale makes it more * efficient for users to consult mirror nodes to review their token balances. * * @deprecated */ tokenBalances: TokenBalance[]; } export declare const CryptoGetAccountBalanceQuery: { encode(message: CryptoGetAccountBalanceQuery, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CryptoGetAccountBalanceQuery; fromJSON(object: any): CryptoGetAccountBalanceQuery; toJSON(message: CryptoGetAccountBalanceQuery): unknown; create(base?: DeepPartial): CryptoGetAccountBalanceQuery; fromPartial(object: DeepPartial): CryptoGetAccountBalanceQuery; }; export declare const CryptoGetAccountBalanceResponse: { encode(message: CryptoGetAccountBalanceResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CryptoGetAccountBalanceResponse; fromJSON(object: any): CryptoGetAccountBalanceResponse; toJSON(message: CryptoGetAccountBalanceResponse): unknown; create(base?: DeepPartial): CryptoGetAccountBalanceResponse; fromPartial(object: DeepPartial): CryptoGetAccountBalanceResponse; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends { $case: string; } ? { [K in keyof Omit]?: DeepPartial; } & { $case: T["$case"]; } : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {}; //# sourceMappingURL=crypto_get_account_balance.d.ts.map