/**
* Utility functions for processing HTML.
*
* This module provides some simple convenience functions for
* processing HTML documents with a similar API to the
* `util/xml` module.
*
* @module util/html
*/
import { ThemaAssets } from '@stencila/thema';
/**
* Parse HTML into a `HTMLDocument`
*/
export declare const load: (html: string) => HTMLDocument;
/**
* Create a `HTMLElement`.
*/
export declare const elem: (tagName: string, attrs?: {
[key: string]: string | number | boolean;
} | undefined, ...children: (string | HTMLElement)[]) => HTMLElement;
/**
* Get an element's text content.
*/
export declare const text: (elem: Node | null) => string | null;
/**
* Get the first descendent element that matches the selector
*/
export declare const first: (elem: HTMLElement | null, selector?: string) => HTMLElement | null;
/**
* Get all descendent elements that match the selector
*/
export declare const all: (elem: HTMLElement | null, selector?: string) => HTMLElement[];
/**
* Get all descendent nodes that have a given name e.g. `figure`, `#text`, `#comment`
*/
export declare const allName: (elem: HTMLElement | null, name: string) => Node[];
/**
* Given a theme name, path, or URL, attempt to resolve it into theme Stylesheet and JavaScript entry files
* (`style.css` and `index.js`).
*
* @param {string} theme - Can be a Thema theme name, or a URL/filepath to a directory following Thema theme conventional structure
* @return {ThemaAssets} - An object containing all the themeās CSS and JavaScript files as an array.
*/
export declare const getThemeAssets: (theme: string, isBundle?: boolean) => Promise;