import type { ConflictResolution } from "@powerhousedao/reactor-browser";
import type { Node } from "document-drive";
import { type OnAddFileWithProgress, type UploadTracker } from "./utils.js";
type UploadsState = {
    [uploadId: string]: UploadTracker | undefined;
};
export declare function useUploadTracker(useLocalStorage?: boolean, driveId?: string): {
    uploads: UploadsState;
    uploadsArray: (UploadTracker | undefined)[];
    uploadsCount: number;
    createUploadHandler: (onAddFile?: OnAddFileWithProgress) => ((file: File, parent: Node | undefined) => Promise<void>) | undefined;
    removeUpload: (uploadId: string) => void;
    clearAllUploads: () => void;
    clearConflictedUploads: () => void;
    resolveConflict: (uploadId: string, resolution: ConflictResolution, onAddFile?: OnAddFileWithProgress) => void;
};
export {};
//# sourceMappingURL=use-upload-tracker.d.ts.map