UNPKG

477 BTypeScriptView Raw
1import { Tree } from '@angular-devkit/schematics';
2import { DefaultTreeElement } from 'parse5';
3/** Appends the given element HTML fragment to the `<head>` element of the specified HTML file. */
4export declare function appendHtmlElementToHead(host: Tree, htmlFilePath: string, elementHtml: string): void;
5/** Parses the given HTML file and returns the head element if available. */
6export declare function getHtmlHeadTagElement(htmlContent: string): DefaultTreeElement | null;