import { MarkdownParserMentionConfiguration } from './markdown-parser-mention-configuration';
/**
 * Base class for Configuration, contains mention configuration required for RichTextMarkdownParser
 */
export class Configuration {
    constructor(mentionElements) {
        this.parserMentionConfig = [];
        this.isValid = true;
        this.isValid = mentionElements.every(mentionElement => mentionElement.mentionInternals.validator.isValid());
        this.parserMentionConfig = this.isValid
            ? mentionElements.map(mentionElement => new MarkdownParserMentionConfiguration(mentionElement.mentionInternals))
            : [];
    }
}
//# sourceMappingURL=configuration.js.map