/** * Tags a multiline string and return new one without line break characters and following spaces. * * @param {Array} strings Parts of the entire string without expressions. * @param {...string} expressions Expressions converted to strings, which are added to the entire string. * @returns {string} */ export declare function toSingleLine(strings: TemplateStringsArray | string[], ...expressions: unknown[]): string; /** * Creates DOM element from the string. For example: * ``` * const element = html` *
*

Example:

* 1 *
* ` * ``` * Will create a `div` element with class `example` and a `span` and `p` element inside. * When `data-ref` attribute is used, the element will be added to the `refs` object. * ``` * { * fragment: ..., * refs: { * example: ..., // reference to the div element * counter: ..., // reference to the span element * } * } * ``` * Tip: If necessary it can be extended to support other attributes or events. * * @param {string} strings Parts of the entire string without expressions. * @param {*} values Expressions converted to strings, which are added to the entire string. * @returns {{ fragment: DocumentFragment, refs: {[key: string]: HTMLElement} }} */ export declare function html(strings: TemplateStringsArray, ...values: unknown[]): { fragment: DocumentFragment; refs: Record; };