/** * A replacement for `String.repeat` until it becomes widely available. */ export declare function stringRepeat(text: string, length: number): string; /** * This function escapes all plain-text sequences that might get converted into markdown * formatting by Bitbucket server (via python-markdown). * @see MarkdownSerializerState.esc() */ export declare function escapeMarkdown(str: string, startOfLine?: boolean, insideTable?: boolean): string; /** * Safely escape text for HTML attribute values */ export declare function escapeHtmlAttribute(text: string): string; /** * Safely unescape HTML attribute values back to text */ export declare function unescapeHtmlAttribute(text: string): string; /** * Parse markdown formatting using pre-compiled regex patterns * This is more efficient than creating regex patterns every time * and safer than manual string replacement */ export declare function parseMarkdownFormatting(text: string): string; /** * This function gets markup rendered by Bitbucket server and transforms it into markup that * can be consumed by Prosemirror HTML parser, conforming to our schema. */ export declare function transformHtml(html: string, options: { disableBitbucketLinkStripping?: boolean; shouldParseCaptions?: boolean; shouldParseCodeSuggestions?: boolean; shouldParseImageResizingAttributes?: boolean; }): HTMLElement;