export declare class Upload_Result {
    success: boolean;
    filename: string | null;
    hash: string | null;
    size: number | null;
    url?: string | null;
    constructor(success: boolean, filename: string | null, hash: string | null, size: number | null);
}
export declare function upload_file(file: File, url: string): Promise<Upload_Result | null>;
export declare function hash(buffer: ArrayBuffer): string;
export declare function download_file(filename: string, expectedHash: string, expectedSize: number, serverUrl: string, skipChecks?: boolean): Promise<ArrayBuffer | null>;
export declare function download(url: string, progressCallback: (prog: ProgressEvent) => void): Promise<Uint8Array | null>;
