/** * Encodes a String. * The characters `&<>"'/` are encoded. * If str is undefined or null an empty string will be returned. * * @param str String that should be encoded * @returns encoded String * @example * ```ts * import escape from "../string-escape"; * * let escapedHtml = escape("hello World"); * escapedHtml === "hello <b>World</b>"; * ``` */ declare function stringEscape(str: string | number): string; export { stringEscape as default, stringEscape as escapeHtml, stringEscape };