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