import { RemoveFlag } from "./models/torrent"; import { UtServer } from "./core/utserver"; import { ITorrentList, Action, TorrentInput, IFileList } from "./types"; export declare class uTorrent extends UtServer { /** * Create the torrent cache */ private __torrentCache; /** * Parse the torrent input */ protected parseTorrentInput(torrents: TorrentInput): string[]; /** * Execute an action on a list of torrents and update them */ protected executeTorrentAction(torrents: TorrentInput, action: Action): Promise; /** * Add a torrent via URL and get its hash */ addUrl(url: string): Promise; /** * List the torrents currently in uTorrent */ list(): Promise; /** * Get the files associated with a torrent */ files(torrents: TorrentInput): Promise; /** * Pause the torrent */ pause(torrents: TorrentInput): Promise; /** * Refresh the torrent list */ refresh(): Promise; /** * Remove the torrents from uTorrent. * * @param {Array} torrents Array of torrent objects/info hashes */ remove(torrents: TorrentInput, flags?: RemoveFlag): Promise; /** * Start the torrent */ start(torrents: TorrentInput, force?: boolean): Promise; /** * Stop the torrent */ stop(torrents: TorrentInput): Promise; /** * Unpause the torrent */ unpause(torrents: TorrentInput): Promise; /** * Get the version of uTorrent */ version(): void; }