/// import * as https from "https"; import { AuthorizedClientRequestContext, CancelRequest, FileHandler, ProgressCallback } from "@bentley/itwin-client"; /** * Provides methods to upload and download files from the Internet * @internal */ export declare class UrlFileHandler implements FileHandler { agent?: https.Agent; protected _uploadMethod: string; constructor(); /** Create a directory, recursively setting up the path as necessary */ private static makeDirectoryRecursive; downloadFile(requestContext: AuthorizedClientRequestContext, downloadUrl: string, downloadToPathname: string, fileSize?: number, progressCallback?: ProgressCallback, cancelRequest?: CancelRequest): Promise; uploadFile(_requestContext: AuthorizedClientRequestContext, uploadUrlString: string, uploadFromPathname: string, progressCallback?: ProgressCallback): Promise; /** * Gets size of a file. * @param filePath Path of the file. * @returns Size of the file. */ getFileSize(filePath: string): number; /** * Gets size of a file. * @param filePath Path of the file. * @returns Size of the file. */ isDirectory(filePath: string): boolean; /** * Checks if path exists. * @param filePath Path of the file. * @returns True if path exists. */ exists(filePath: string): boolean; /** * Deletes file. * @param filePath Path of the file. */ unlink(filePath: string): void; /** * Get file name from the path. * @param filePath Path of the file. * @returns File name. */ basename(filePath: string): string; /** * Joins multiple string into a single path. * @param paths Strings to join. * @returns Joined path. */ join(...paths: string[]): string; } //# sourceMappingURL=UrlFileHandler.d.ts.map