jokkerr
Version:
Node package and CLI tool for saving web page as single HTML file
31 lines (30 loc) • 835 B
TypeScript
import { Archiver as ArchiverImpl, Options, Requests } from './types/cairn';
export declare class Archiver implements ArchiverImpl {
private opt;
private req;
constructor();
/**
* Set archival request data.
*
* @param {object} [Requests] if error will be thrown
* @return {this} [Cairn] `this` command for chaning
* @api public
*/
request(r: Requests): this;
/**
* Set archival options data.
*
* @param {object} [Options] if error will be thrown
* @return {this} [Cairn] `this` command for chaning
* @api public
*/
options(o: Options): this;
/**
* Perform archival request.
*
* @return {Promise} with string
* @api public
*/
archive(): Promise<string>;
download(url: string, referer?: string): Promise<any>;
}