Files
2026-03-31 16:38:22 -07:00

32 lines
912 B
TypeScript

//#region src/dedent.d.ts
/**
* Removes common leading whitespace from each line in the given text.
*
* @param text The text to dedent.
* @returns The dedented text.
*/
declare const dedent: (text: string) => string;
//#endregion
//#region src/escape.d.ts
/**
* Escapes html content
*
* @param unsafeHTML The html content to escape.
* @returns The escaped html content.
*/
declare const escapeHtml: (unsafeHTML: string) => string;
/**
* Escapes special characters in string s such that the string
* can be used in `new RegExp`. For example "[" becomes "\\[".
*
* @param regexp The string to escape.
* @returns The escaped string.
*/
declare const escapeRegExp: (regexp: string) => string;
//#endregion
//#region src/reg.d.ts
declare const NEWLINE_RE: RegExp;
declare const UNESCAPE_RE: RegExp;
//#endregion
export { NEWLINE_RE, UNESCAPE_RE, dedent, escapeHtml, escapeRegExp };
//# sourceMappingURL=index.d.ts.map