import { Long } from "long"; import { QueryReactionsResponse, QueryRegisteredReactionsResponse } from "@desmoslabs/desmjs-types/desmos/reactions/v1/query"; import { PageRequest } from "cosmjs-types/cosmos/base/query/v1beta1/pagination"; import { Reaction, RegisteredReaction, SubspaceReactionsParams } from "@desmoslabs/desmjs-types/desmos/reactions/v1/models"; import { QueryClient } from "@cosmjs/stargate"; export interface ReactionsExtension { reactionsV1: { /** * Queries the reactions for the given post. */ readonly reactions: (subspaceId: Long, postId: Long, user?: string, pagination?: PageRequest) => Promise; /** * Queries the reaction for the given post having the provided id. */ readonly reaction: (subspaceId: Long, postId: Long, reactionId: number) => Promise; /** * Queries the registered reactions for the given subspace. */ readonly registeredReactions: (subspaceId: Long, pagination?: PageRequest) => Promise; /** * Queries the registered reaction with the provided id from the given subspace. */ readonly registeredReaction: (subspaceId: Long, reactionId: number) => Promise; /** * Queries the reaction params for the given subspace. */ readonly reactionsParams: (subspaceId: Long) => Promise; }; } export declare function setupReactionsExtension(base: QueryClient): ReactionsExtension; export default setupReactionsExtension;