import { MutationKey, MutationObserver } from '@tanstack/query-core';
import { WeavyType } from '../client/weavy';
import { AppType } from '../types/app.types';
import { PostMutationContextType, PostType } from '../types/posts.types';
export type MutatePostSubscribeVariables = {
    id: number;
    subscribe: boolean;
};
export type SubscribePostMutationType = MutationObserver<PostType, Error, MutatePostSubscribeVariables, PostMutationContextType>;
export declare function getSubscribePostMutationOptions(weavy: WeavyType, app: AppType): {
    mutationKey: MutationKey;
    mutationFn: ({ id, subscribe }: MutatePostSubscribeVariables) => Promise<any>;
    onMutate: (variables: MutatePostSubscribeVariables) => Promise<object>;
    onSuccess: (data: PostType, variables: MutatePostSubscribeVariables) => void;
    onError(): void;
};
export declare function getSubscribePostMutation(weavy: WeavyType, app: AppType): SubscribePostMutationType;
//# sourceMappingURL=post-subscribe.d.ts.map