UNPKG

strong-globalize-cli

Version:
15 lines (14 loc) 844 B
import { AnyObject } from 'strong-globalize/lib/config'; /** * Customize regex to extract string out of HTML text * * @param {RegExp} regex to extract the whole string out of the HTML text * @param {RegExp} regexHead to trim the head portion from * the extracted string * @param {RegExp} regexTail to trim the tail portion from * the extracted string */ export declare function setHtmlRegex(regex: RegExp, regexHead: RegExp, regexTail: RegExp): void; export declare function extractMessages(blackList: string[], deep: boolean, suppressOutput: boolean, callback?: () => void): void; export declare function scanHtml(content: string, fileName: string, verboseMode: boolean): AnyObject<any>[]; export declare function scanAst(content: string, fileName: string, verboseMode: boolean, fileEntries: AnyObject): AnyObject<any>[] | null;