import { Mutation, MutationState } from '@tanstack/query-core';
import { BlobType, FileType, CreateFileProps, FileMutationContextType, FileStatusStateType } from '../types/files.types';
import { UserType } from '../types/users.types';
import { WeavyType } from '../client/weavy';
import { AppType } from '../types/app.types';
export declare const getTempFile: (file: File | URL | undefined, name: string, size: number | undefined, type: string | undefined, user: UserType, refId?: number) => FileType;
export declare function getFileMutationsTotalProgress(mutationStates?: MutationState<BlobType, unknown, unknown, FileMutationContextType>[]): {
    loaded: number;
    total: number;
    percent: number | null;
};
export declare function getFileMutationsTotalStatus(mutationStates?: MutationState<BlobType | FileType, Error, unknown, FileMutationContextType>[]): FileStatusStateType;
export declare function getFileMutationsByConflictOrError(mutationStates?: MutationState<BlobType | FileType, Error, unknown, FileMutationContextType>[]): MutationState<BlobType | FileType, Error, unknown, FileMutationContextType>[];
export type CreateFileMutationType = Mutation<FileType, Error, CreateFileProps, FileMutationContextType | undefined>;
export declare function removeSettledFileMutations(weavy: WeavyType, app: AppType, name: string): void;
export declare function getCreateFileMutationOptions(weavy: WeavyType, user: UserType, app: AppType): {
    mutationFn: ({ blob, replace }: CreateFileProps) => Promise<FileType>;
    mutationKey: readonly unknown[];
    onMutate: (variables: CreateFileProps) => Promise<FileMutationContextType>;
    onSuccess: (_data: FileType, variables: CreateFileProps, _context: FileMutationContextType | undefined) => Promise<void>;
    onError(error: Error, variables: CreateFileProps, _context: FileMutationContextType | undefined): void;
};
//# sourceMappingURL=file-create.d.ts.map