import { Rewards } from "./types"; import { ObservableChainQuery, ObservableChainQueryMap } from "../../chain-query"; import { ChainGetter } from "../../../chain"; import { CoinPretty } from "@keplr-wallet/unit"; import { QueryResponse, QuerySharedContext } from "../../../common"; export declare class ObservableQueryRewardsInner extends ObservableChainQuery { protected bech32Address: string; constructor(sharedContext: QuerySharedContext, chainId: string, chainGetter: ChainGetter, bech32Address: string); protected canFetch(): boolean; protected fetchResponse(abortController: AbortController): Promise<{ headers: any; data: Rewards; }>; get rewards(): CoinPretty[]; readonly getRewardsOf: (validatorAddress: string) => CoinPretty[]; get stakableReward(): CoinPretty | undefined; readonly getStakableRewardOf: (validatorAddress: string) => CoinPretty | undefined; get unstakableRewards(): CoinPretty[]; readonly getUnstakableRewardsOf: (validatorAddress: string) => CoinPretty[]; get pendingRewardValidatorAddresses(): string[]; /** * getDescendingPendingRewardValidatorAddresses returns the validator addresses in descending order by stakable asset. */ readonly getDescendingPendingRewardValidatorAddresses: (maxValiadtors: number) => string[]; protected onReceiveResponse(response: Readonly>): void; } export declare class ObservableQueryRewards extends ObservableChainQueryMap { constructor(sharedContext: QuerySharedContext, chainId: string, chainGetter: ChainGetter); getQueryBech32Address(bech32Address: string): ObservableQueryRewardsInner; }