// Type definitions for jsdom 2.0.0 // Project: https://github.com/tmpvar/jsdom // Definitions by: Asana // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module "jsdom" { /** * The do-what-I-mean API. * * Example: * jsdom.env(html, function (errors, window) { * // free memory associated with the window * window.close(); * }); * * @param urlOrSource may be a URL, file name, or HTML fragment * @param scriptUrlsOrSources a string or array of strings, containing file names or URLs that will be inserted as * @param config Configuration object * @param callback */ export function env(urlOrHtml: string, scripts: string, config: Config, callback?: Callback): void; export function env(urlOrHtml: string, scripts: string, callback: Callback): void; export function env(urlOrHtml: string, scripts: string[], config: Config, callback?: Callback): void; export function env(urlOrHtml: string, scripts: string[], callback: Callback): void; export function env(urlOrHtml: string, callback: Callback): void; export function env(urlOrHtml: string, config: Config, callback?: Callback): void; export function env(config: Config, callback?: Callback): void; /** * The jsdom.jsdom method does less things automatically; it takes in only HTML source, and does not let you to * separately supply script that it will inject and execute. It just gives you back a document object, * with usable document.parentWindow, and starts asynchronously executing any