import { InfiniteQueryObserverOptions, MutationKey, InfiniteData } from '@tanstack/query-core';
import { WeavyType } from '../client/weavy';
import { CommentType, CommentsResultType, MutateCommentProps } from '../types/comments.types';
export declare function getCommentsOptions(weavy: WeavyType, type: "posts" | "files" | "apps", parentId: number | null, options?: object): InfiniteQueryObserverOptions<CommentsResultType, Error, InfiniteData<CommentsResultType>>;
export declare function getUpdateCommentMutationOptions(weavy: WeavyType, mutationKey: MutationKey): {
    mutationFn: (variables: MutateCommentProps) => Promise<import('../types/msg.types').MsgType>;
    mutationKey: readonly unknown[];
    onSuccess: (data: CommentType, variables: MutateCommentProps) => void;
};
export declare function getAddCommentMutationOptions(weavy: WeavyType): {
    mutationFn: (variables: MutateCommentProps) => Promise<import('../types/msg.types').MsgType>;
    onMutate: (variables: MutateCommentProps) => Promise<void>;
    onSuccess: (data: CommentType, variables: MutateCommentProps) => void;
};
//# sourceMappingURL=comments.d.ts.map