import { HttpClient } from '@angular/common/http';
import { ElementRef, Injector } from '@angular/core';
import { ResponseResult } from '../../../models/response-result';
import { AuthenService } from '../../../services/authen.service';
import { BaseService } from '../../../services/base.service';
import { CommonService } from '../../../services/common.service';
import { ModuleConfigService } from '../../../services/module-config.service';
import { FolderCreateAndSetPermissionDTO } from '../models/folder-create-and-set-permission-dto';
import { GenerateLinkDownloadDTO } from '../models/generate-link-download-dto';
import { MoveFileDTO } from '../models/move-file-dto';
import { ShareFileDTO } from '../models/share-file-dto';
import { ShareFolderDTO } from '../models/share-folder-dto';
export declare class MyDriveService extends BaseService {
    private _moduleConfig;
    private _authenService;
    private _commonSerivce;
    private _moduleConfigService;
    readonly RETRY_COUNT: number;
    readonly REPLAY_COUNT: number;
    private _serviceUri;
    _documentServerUrl: any;
    constructor(_http: HttpClient, _injector: Injector, _moduleConfig: ModuleConfigService, _authenService: AuthenService, _commonSerivce: CommonService, _moduleConfigService: ModuleConfigService);
    getFileExplorerById(fileId: string): Promise<ResponseResult>;
    getMyFiles(): Promise<ResponseResult>;
    getByFolderId(folderId: string): Promise<ResponseResult>;
    getMyShare(userId: number): Promise<ResponseResult>;
    getMyShareToOther(ownerId: number): Promise<ResponseResult>;
    getFolderTree(folderId: string): Promise<ResponseResult>;
    getShareToOtherByFolderId(folderId: string, objectId?: string): Promise<ResponseResult>;
    createNewFolder(folder: FolderCreateAndSetPermissionDTO): Promise<ResponseResult>;
    deleteFolder(folderId: string): Promise<ResponseResult>;
    deleteMultipleFolder(folderIds: any): Promise<ResponseResult>;
    renameFolder(folderId: string, newFolderName: string): Promise<ResponseResult>;
    shareFolder(shareFolder: ShareFolderDTO): Promise<ResponseResult>;
    deleteShareFolder(folderId: string, objectId: string): Promise<ResponseResult>;
    deleteShareFolderToOther(folderId: string, ownerId: number): Promise<ResponseResult>;
    getUploadUrl(): string;
    getFileDownloadUrl(fileId: string): string;
    getFile(fileId: string): Promise<ResponseResult>;
    getFileVersionDownloadUrl(fileVersionId: string): string;
    getAnonymousDownloadUrl(hash: string): string;
    generateLinkDownload(model: GenerateLinkDownloadDTO): Promise<ResponseResult>;
    downloadFile(fileId: string, isFileVersion?: boolean): void;
    generateLinkDownloadMultiple(model: GenerateLinkDownloadDTO[]): Promise<ResponseResult>;
    getBinaryFile(linkDownload: string): Promise<Object>;
    setMoveFileItem(moveFile: MoveFileDTO): Promise<ResponseResult>;
    deleteFile(fileId: string): Promise<ResponseResult>;
    deleteMultipleFile(fileIds: any): Promise<ResponseResult>;
    deleteFileVersion(fileVersionId: string): Promise<ResponseResult>;
    renameFile(fileId: string, newFileName: string): Promise<ResponseResult>;
    shareFile(shareFile: ShareFileDTO): Promise<ResponseResult>;
    deleteShareFile(fileId: string, objectId: string): Promise<ResponseResult>;
    deleteShareFileToOther(fileId: string, ownerId: number): Promise<ResponseResult>;
    getSharedFiles(folderId?: string): Promise<ResponseResult>;
    getUserSharingByFile(fileId: string): Promise<ResponseResult>;
    getFolderId(userId: string): Promise<ResponseResult>;
    isSupportedViewOnline(fileName: string): boolean;
    getFileType(fileName: string): string;
    convertToPdf(fileName: string, fileId: string, isFileVersion: boolean): Promise<string>;
    print(fileUrl: string): void;
    downloadByIframe(_elementRef: ElementRef, fileId: any): void;
    handleError(error: any): Promise<never>;
}
//# sourceMappingURL=my-drive.service.d.ts.map