import { Decimal, Uint64 } from "@cosmjs/math"; import { PageRequest } from "@shareledgerjs/types/cosmos/base/query/v1beta1/pagination"; import Long from "long"; import type { QueryClient } from "./client"; /** * 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; export declare function toBech32Address(pubkey: Uint8Array, prefix?: string): string; export declare function toBech32ValAddress(pubkey: Uint8Array, prefix?: string): string; export declare function toBech32ConsAddress(pubkey: Uint8Array, prefix?: string): string; export declare function createPagination(paginationKey?: Uint8Array): PageRequest | undefined; export interface ProtobufRpcClient { request(service: string, method: string, data: Uint8Array): Promise; withHeight(height?: number): ProtobufRpcClient; } export declare class ProtobufRpcClientImpl implements ProtobufRpcClient { private readonly base; private _height?; constructor(base: QueryClient); request(service: string, method: string, data: Uint8Array, height?: number): Promise; withHeight(height?: number): ProtobufRpcClient; } export declare function createProtobufRpcClient(base: QueryClient): ProtobufRpcClient; /** * Takes a uint64 value as string, number, Long or Uint64 and returns an unsigned Long instance * of it. */ export declare function longify(value: string | number | Long | Uint64): Long; /** * 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;