///
import NCClient from "./ncClient";
export default class NCFile {
name: string;
baseName: string;
lastmod: Date;
size: number;
mime: string;
private id;
private client;
constructor(client: NCClient, name: string, baseName: string, lastmod: string, size: number, mime: string, id: number);
/**
* deletes a file
* @throws Error
*/
delete(): Promise;
/**
* moves or renames the current file to the new location
* target folder must exists
* @param targetFileName the name of the target file /f1/f2/myfile.txt
* @throws Error
*/
move(targetFileName: string): Promise;
/**
* @returns the id of the file, -1 if the file has been deleted
* @throws Error
*/
getId(): Promise;
/**
* @returns the buffer of the file content
* @throws Error
*/
getContent(): Promise;
/**
* @returns the url of the file
* @throws Error
*/
getUrl(): string;
/**
* @returns the url of the file in the UI
* @throws Error
*/
getUIUrl(): Promise;
/**
* adds a tag name to the file
* @param tagName name of the tag
*/
addTag(tagName: string): Promise;
/**
* get tag names
* @returns array of tag names
*/
getTags(): Promise;
/**
* removes a tag of the file
* @param tagName the name of the tag
*/
removeTag(tagName: string): Promise;
/**
* add comment to file
* @param comment the comment
*/
addComment(comment: string): Promise;
/**
* get list of comments of file
* @param top number of comments to return
* @param skip the offset
* @returns array of comment strings
* @throws Exception
*/
getComments(top?: number, skip?: number): Promise;
}