import { PageRequest } from "cosmjs-types/cosmos/base/query/v1beta1/pagination"; import { Long } from "long"; import { QueryIncomingPostOwnerTransferRequestsResponse, QueryPollAnswersResponse, QueryPostAttachmentsResponse, QuerySectionPostsResponse, QuerySubspacePostsResponse } from "@desmoslabs/desmjs-types/desmos/posts/v3/query"; import { Params, Post } from "@desmoslabs/desmjs-types/desmos/posts/v3/models"; import { QueryClient } from "@cosmjs/stargate"; export interface PostsExtension { readonly postsV3: { /** * Queries the posts for the given subspace. */ readonly subspacePosts: (subspaceId: Long, pagination?: PageRequest) => Promise; /** * Queries the posts for the given subspace section. */ readonly sectionPosts: (subspaceId: Long, sectionId: number, pagination?: PageRequest) => Promise; /** * Queries the post with the given id from the provided subspace. */ readonly post: (subspaceId: Long, postId: Long) => Promise; /** * Queries the attachments for the given post. */ readonly postAttachments: (subspaceId: Long, postId: Long) => Promise; /** * Queries the answers for the given poll. */ readonly pollAnswers: (subspaceId: Long, postId: Long, pollId: number, user?: string) => Promise; /** * Queries the module params. */ readonly params: () => Promise; /** * Queries incoming post owner transfer requests. */ readonly incomingPostOwnerTransfer: (subspaceId: Long, receiver: string, pagination?: PageRequest) => Promise; }; } export declare function setupPostsExtension(base: QueryClient): PostsExtension;