export declare function string2domNode(s: string, withRoot?: boolean): HTMLElement; export declare const getTextSize: (text: string, styles: { fontSize: string; fontFamily?: string; }) => { w: number; h: number; }; export declare function getAttrFromHtmlStr(rawHtml: string, attr: string): string | null; export declare function getAllSrcsFromHtmlStr(rawHtml: string): (string | null)[] | null; export declare function stripHtmlTag(s: string): string; export declare function renameTag_danger(doc: HTMLElement, fromSelector: string, toTag: string): HTMLElement; export declare function extractArrayFromTable(html: string): string[][] | null;