import { InfiniteQueryObserverOptions, MutationKey, InfiniteData } from '@tanstack/query-core';
import { WeavyType } from '../client/weavy';
import { MutatePostProps, PostType, PostsResultType } from '../types/posts.types';
export declare function getPostsOptions(weavy: WeavyType, appId: number | null): InfiniteQueryObserverOptions<PostsResultType, Error, InfiniteData<PostsResultType>>;
export declare function getUpdatePostMutationOptions(weavy: WeavyType, mutationKey: MutationKey): {
    mutationFn: (variables: MutatePostProps) => Promise<any>;
    mutationKey: MutationKey;
    onMutate: (variables: MutatePostProps) => Promise<void>;
    onSuccess: (data: PostType, variables: MutatePostProps) => void;
};
export type MutatePostContextType = {
    tempId: number;
};
export declare function getAddPostMutationOptions(weavy: WeavyType, mutationKey: MutationKey): {
    mutationFn: (variables: MutatePostProps) => Promise<any>;
    mutationKey: MutationKey;
    onMutate: (variables: MutatePostProps) => Promise<MutatePostContextType>;
    onSuccess: (data: PostType, variables: MutatePostProps, context?: MutatePostContextType) => void;
};
//# sourceMappingURL=posts.d.ts.map