export declare const EncodeUrlRegexMap: {
    edit: RegExp;
    url: RegExp;
    encodedUrl: RegExp;
    editorMention: RegExp;
    editorFullMention: RegExp;
    savedMention: RegExp;
    rawUrl: RegExp;
    optionalProtocol: RegExp;
    encodedUrl2: RegExp;
};
export declare const BadWordRegex: RegExp;
export declare const encodePostUrl: (s: string, sanitizeFunction?: (s: string) => string) => string;
export declare const encodeMention: (s: string) => string;
export declare const getAnchorHtml: ({ url, text, method, }: {
    url: string;
    text: string;
    method: string;
}) => string;
export declare const decodePostUrl: (s: string, method: string) => string;
export declare const decodeMention: (s: string, users?: {
    id: number;
    name: string;
}[]) => string;
export declare const getUrlsFromString: (s: string) => string[];
export declare const LIMIT_MENTION = 30;
export declare const getMentionIdsFromString: (s: string, disableLimit?: boolean) => string[];
export declare const getUrlsFromEditorString: (s: string) => string[];
export declare const escapeRegExp: (string: string) => string;
export declare function escapeHtmlString(html: string, isAttribute?: boolean): string;
export declare function unescapeHtmlString(html: string): string;
export declare const wrapAnchorAroundUrls: (s: string) => string;
export declare const removeEdittedBannedWord: (s: string) => string;
export declare const removeBannedWordWrapper: (s: string) => string;
export declare const removeFontFormat: (s: string) => string;
export declare const encodePostContent: (s: string, sanitizeFunction?: (s: string) => string) => string;
export declare const ALLOW_DOMAIN_URL: string[];
export declare const reformatUrl: (s: string) => string;
export declare const highlightBadWords: (text: string, bannedWords: string[]) => string;
export declare const fixMalformedMention: (text: string) => string;
export declare const youtubeVidIdGetter: (url: string) => string;
export declare const facebookVidIdGetter: (url: string) => string;
export declare const uploadAndGetSrc: (file: File | string, locale: string, isAdmin?: boolean) => Promise<string>;
