/// import { Got } from 'got'; import GenericOptions from './interfaces/genericOptions'; import Quota from './interfaces/yandex/Quota'; import Resource from './interfaces/yandex/Resouce'; export declare class YandexDiskClientAuth { private login; private password; private httpClient; private auth; private skToken; private idClient; private CookieJar; private internalOptions?; constructor(login: string, password: string, internalOptions?: GenericOptions); private createHttpClientInstance; logIn(): Promise; getClientInstance(): YandexDiskClient; loginTroughtAuthObject(authObject: { skToken: string; idClient: string; cookieJar: any; }): Promise; getAuthObject(): { skToken: string; idClient: string; cookieJar: any; }; } /** * This class should be received through `getClientInstance` method of `YandexDiskClientAuth` class. **Do not use this class directly!** */ export declare class YandexDiskClient { private yaResources; constructor(httpClient: Got, skToken: string, idClient: string, internalOptions?: GenericOptions); getQuota(): Promise; /** * Returns an array of resources for a given folder. */ getFolderResources(path: string, options?: { withParent: boolean; }): Promise; /** Returns a https link to requested file */ getFileDownloadUrl(path: string): Promise; /** Used to upload buffer to yandex.disk */ uploadFile(buffer: Buffer, path: string): Promise<{ status: string; resource?: Resource; }>; /** Used to create a folder. Don't support recursive creation. */ createFolder(path: string, options?: { isRecursive: boolean; }): Promise; /** Used to delete a resource. */ deleteResource(path: string): Promise; /** Use this method to clean trash (basket) of your yandex.disk */ cleanTrash(): Promise; deleteAllResources(): Promise; publishResource(path: string, type?: string): Promise<{ hash: string; short_url: string; short_url_named: string; url: string; }>; }