import { FileInfo } from '@limetech/lime-elements';
import { HttpClient } from '@limetech/lime-web-components';
export declare const MAX_FILE_SIZE: number;
export declare class FileUpload {
    private file;
    private http;
    uploadCancelled: boolean;
    private uploadService;
    private progressCallback;
    constructor(file: File, http: HttpClient);
    initialize(): Promise<void>;
    upload(): Promise<any>;
    getFileName(): string;
    cancel(): void;
    set onProgress(callback: (progress: number) => void);
    getUrl: (fileid?: number) => string;
}
export type FileStatus = FileInfo & {
    progress: number;
    state: 'added' | 'uploading' | 'finalizing' | 'done';
    fileId: number | undefined;
};
export type FileWrapper = FileStatus & {
    file: FileUpload;
};
//# sourceMappingURL=building-blocks-uploader.d.ts.map