import { CommentsSortByOptions } from "../../interfaces/CommentsSortByOptions"; import { Comment, CommentIncludeParam } from "../../interfaces/models/Comment"; import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation"; import { BlockedFilter } from "../../interfaces/BlockedFilter"; export interface UseFetchManyCommentsWrapperProps extends SpaceReputationContextParams { entityId?: string | null; userId?: string | null; parentId?: string | null; sourceId?: string | null; limit?: number; include?: CommentIncludeParam; defaultSortBy?: CommentsSortByOptions; /** Initial sort direction for `sortBy: "createdAt"`. Defaults to `"desc"`. */ defaultSortDir?: "asc" | "desc"; blockedFilter?: BlockedFilter | null; } export interface UseFetchManyCommentsWrapperValues { comments: Comment[]; loading: boolean; hasMore: boolean; sortBy: CommentsSortByOptions | null; setSortBy: (newSortBy: CommentsSortByOptions) => void; /** Sort direction for `sortBy: "createdAt"`. */ sortDir: "asc" | "desc"; setSortDir: (newSortDir: "asc" | "desc") => void; loadMore: () => void; } declare function useFetchManyCommentsWrapper(props: UseFetchManyCommentsWrapperProps): UseFetchManyCommentsWrapperValues; export default useFetchManyCommentsWrapper;