declare class CowHTMLDocCtx {
document: Document;
documentElement: HTMLElement;
constructor(document: Document, documentElement?: HTMLElement);
args: never[];
init(...html: string[]): void;
initScripts(element?: Document): HTMLScriptElement[];
static d: DOMImplementation;
static makeStaticPage: (docName: string | undefined) => CowHTMLDocCtx;
static writePageToPage(page: CowHTMLDocCtx): void;
static manualWrite: (...html: string[]) => CowHTMLDocCtx;
}
declare class CowXMLDocCtx {
static d: DOMImplementation;
static makeDoc(namespace: string | null, qualifiedName: string | null, doctype: DocumentType | null | undefined): CowXMLDocCtx;
document: XMLDocument;
constructor(d: XMLDocument);
addElement(tagName: any, attributes?: Record): any;
getElementsByTagName(tagName: any): HTMLCollectionOf;
serialize(): string;
treewalk(callback: (node: Node, tw: TreeWalker) => {}, filter?: number): void;
}
declare const _default: {
CowHTMLDocCtx: typeof CowHTMLDocCtx;
CowXMLDocCtx: typeof CowXMLDocCtx;
};
export { _default as default };