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[]): { /** Loaded bytes */ loaded: number; /** Total bytes */ total: number; /** Progress of upload provided as 0-100 percent. */ percent: number | null; }; export declare function getFileMutationsTotalStatus(mutationStates?: MutationState[]): FileStatusStateType; export declare function getPendingFileMutations(mutationStates?: MutationState[]): MutationState[]; export declare function getFileMutationsByConflictOrError(mutationStates?: MutationState[]): MutationState[]; export type CreateFileMutationType = Mutation; export declare function removeErroredFileMutations(weavy: WeavyType, app: AppType): void; 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; mutationKey: readonly unknown[]; onMutate: (variables: CreateFileProps) => Promise; onSuccess: (_data: FileType, variables: CreateFileProps, _context: FileMutationContextType | undefined) => void; onError(error: Error, variables: CreateFileProps, _context: FileMutationContextType | undefined): void; }; export declare function getUpdateFileMutationOptions(weavy: WeavyType, user: UserType, app: AppType): { mutationFn: ({ blob, replace }: CreateFileProps) => Promise; mutationKey: readonly unknown[]; onMutate: (variables: CreateFileProps) => Promise; onSuccess: (_data: FileType, variables: CreateFileProps, _context: FileMutationContextType | undefined) => void; onError(error: Error, variables: CreateFileProps, _context: FileMutationContextType | undefined): void; }; //# sourceMappingURL=file-create.d.ts.map