import { InfiniteQueryObserverOptions, MutationKey, InfiniteData } from '@tanstack/query-core';
import { WeavyContextType } from '../client/weavy';
import { CommentMutationContextType, CommentType, CommentsResultType, MutateCommentProps } from '../types/comments.types';

export declare function getCommentsOptions(weavyContext: WeavyContextType, type: string, parentId: number | null, options?: Object): InfiniteQueryObserverOptions<CommentsResultType, Error, InfiniteData<CommentsResultType>>;
export declare function getUpdateCommentMutationOptions(weavyContext: WeavyContextType, mutationKey: MutationKey): {
    mutationFn: (variables: MutateCommentProps) => Promise<any>;
    mutationKey: MutationKey;
    onSuccess: (data: CommentType, variables: MutateCommentProps) => void;
};
export declare function getAddCommentMutationOptions(weavyContext: WeavyContextType, 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