export declare class BadWordFilter {
    private badWords;
    private regex;
    private constructor();
    static create(badWordsOrFilePath?: string[] | string): Promise<BadWordFilter>;
    private escapeRegex;
    private normalizeText;
    private buildRegex;
    hasBadWord(comment: string): boolean;
    filter(comment: string, mask?: string): string;
}
