import { MutationKey, MutationObserver } from '@tanstack/query-core';
import { WeavyType } from '../client/weavy';
import { FileMutationContextType, FileType } from '../types/files.types';
import { AppType } from '../types/app.types';
export type MutateFileVariables = {
    file: FileType;
};
export type RemoveFileMutationType = MutationObserver<void, Error, MutateFileVariables, FileMutationContextType>;
export type DeleteForeverFileMutationType = MutationObserver<void, Error, MutateFileVariables, FileMutationContextType>;
export declare function getTrashFileMutationOptions(weavy: WeavyType, app: AppType): {
    mutationKey: MutationKey;
    mutationFn: ({ file }: MutateFileVariables) => Promise<void>;
    onMutate: (variables: MutateFileVariables) => Promise<FileMutationContextType>;
    onSuccess: (data: void, variables: MutateFileVariables) => void;
    onError(error: Error, variables: MutateFileVariables): void;
};
export declare function getTrashFileMutation(weavy: WeavyType, app: AppType): RemoveFileMutationType;
export declare function getRestoreFileMutationOptions(weavy: WeavyType, app: AppType): {
    mutationKey: MutationKey;
    mutationFn: ({ file }: MutateFileVariables) => Promise<void>;
    onMutate: (variables: MutateFileVariables) => Promise<FileMutationContextType>;
    onSuccess: (data: void, variables: MutateFileVariables) => void;
    onError(error: Error, variables: MutateFileVariables): void;
};
export declare function getRestoreFileMutation(weavy: WeavyType, app: AppType): RemoveFileMutationType;
export declare function getDeleteForeverFileMutationOptions(weavy: WeavyType, app: AppType): {
    mutationKey: MutationKey;
    mutationFn: ({ file }: MutateFileVariables) => Promise<void>;
    onMutate: (variables: MutateFileVariables) => Promise<FileMutationContextType>;
    onSuccess: (_data: void, variables: MutateFileVariables) => void;
    onError(error: Error, variables: MutateFileVariables): void;
};
export declare function getDeleteForeverFileMutation(weavy: WeavyType, app: AppType): DeleteForeverFileMutationType;
//# sourceMappingURL=file-remove.d.ts.map