import { Client, Object, Tunnel } from '@raytecvision/guacamole-common-js'; import { File, ManagedFilesystem } from './managed-filesystem'; import { TunnelRestApiService } from './tunnel-rest-api.service'; import * as i0 from "@angular/core"; export declare class ManagedFilesystemService { private tunnelService; constructor(tunnelService: TunnelRestApiService); /** * Creates a new ManagedFilesystem instance from the given Guacamole.Object * and human-readable name. Upon creation, a request to populate the * contents of the root directory will be automatically dispatched. * * @param tunnel * @param client * The client that originally received the "filesystem" instruction * that resulted in the creation of this ManagedFilesystem. * * @param object * The Guacamole.Object defining the filesystem. * * @param name * A human-readable name for the filesystem. * * @returns * The newly-created ManagedFilesystem. */ createInstance(tunnel: Tunnel, client: Client, object: Object, name: string): Promise; /** * Refreshes the contents of the given file, if that file is a directory. * Only the immediate children of the file are refreshed. Files further * down the directory tree are not refreshed. * * @param fs * The filesystem associated with the file being refreshed. * * @param file * The file being refreshed. */ refresh(fs: ManagedFilesystem, file: File): Promise; /** * Downloads the given file from the server using the given Guacamole * client and filesystem. The browser will automatically start the * download upon completion of this function. * * @param fs * The ManagedFilesystem from which the file is to be downloaded. Any * path information provided must be relative to this filesystem. * * @param path * The full, absolute path of the file to download, retrieved from file.streamName. */ startFileDownload(fs: ManagedFilesystem, path: string): void; /** * Changes the current directory of the given filesystem, automatically * refreshing the contents of that directory. * * @param fs * The filesystem whose current directory should be changed. * * @param file * The directory to change to. */ changeDirectory(fs: ManagedFilesystem, file: File): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }