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 MutateFileNameVariables = {
    file: FileType;
    name: string;
};
export type RenameFileMutationType = MutationObserver<FileType, Error, MutateFileNameVariables, FileMutationContextType>;
export declare function getRenameFileMutationOptions(weavy: WeavyType, app: AppType): {
    mutationKey: MutationKey;
    mutationFn: ({ file, name }: MutateFileNameVariables) => Promise<FileType>;
    onMutate: (variables: MutateFileNameVariables) => FileMutationContextType;
    onSuccess: (data: FileType, variables: MutateFileNameVariables) => void;
    onError(error: Error, variables: MutateFileNameVariables): void;
};
export declare function getRenameFileMutation(weavy: WeavyType, app: AppType): RenameFileMutationType;
//# sourceMappingURL=file-rename.d.ts.map