declare class Element { readonly tagName: string; readonly children: Array; constructor(tagName: string); appendChild(element: Element): Element; } declare class CSSRule { cssText: string; constructor(cssText: string); } declare class StyleSheet { cssRules: Array; constructor(); insertRule(cssText: string, index?: number): void; } declare class StyleElement extends Element { sheet: StyleSheet; constructor(); } export declare const isStyleElement: (element: Element) => element is StyleElement; export declare const walkElements: (element: Element) => IterableIterator; declare class Document { readonly head: Element; readonly body: Element; constructor(); createElement(tagName: string): Element; walkElements(): IterableIterator; get stylesheets(): Array; get css(): string; } interface Sandbox { document: Document; exports: Partial; } export declare const createSandbox: () => Sandbox; export {};