import { Decimal, Uint64 } from "@cosmjs/math"; import { PageRequest } from "cosmjs-types/cosmos/base/query/v1beta1/pagination"; import { QueryClient } from "./queryclient"; /** * Takes a bech32 encoded address and returns the data part. The prefix is ignored and discarded. * This is called AccAddress in Cosmos SDK, which is basically an alias for raw binary data. * The result is typically 20 bytes long but not restricted to that. */ export declare function toAccAddress(address: string): Uint8Array; /** * If paginationKey is set, return a `PageRequest` with the given key. * If paginationKey is unset, return `undefined`. * * Use this with a query response's pagination next key to * request the next page. */ export declare function createPagination(paginationKey?: Uint8Array): PageRequest; export interface ProtobufRpcClient { request(service: string, method: string, data: Uint8Array): Promise; } export declare function createProtobufRpcClient(base: QueryClient): ProtobufRpcClient; /** * Takes a uint64 value as string, number, BigInt or Uint64 and returns a BigInt * of it. */ export declare function longify(value: string | number | Uint64): bigint; /** * Takes a string or binary encoded `github.com/cosmos/cosmos-sdk/types.Dec` from the * protobuf API and converts it into a `Decimal` with 18 fractional digits. * * See https://github.com/cosmos/cosmos-sdk/issues/10863 for more context why this is needed. */ export declare function decodeCosmosSdkDecFromProto(input: string | Uint8Array): Decimal;