| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 | import { MentionService } from '../parser/mention-utils';import { AbstractMatch, AbstractMatchConfig } from './abstract-match';/** * @class Autolinker.match.Mention * @extends Autolinker.match.AbstractMatch * * Represents a Mention match found in an input string which should be Autolinked. * * See this class's superclass ({@link Autolinker.match.Match}) for more details. */export declare class MentionMatch extends AbstractMatch {    /**     * @public     * @property {'mention'} type     *     * A string name for the type of match that this class represents. Can be     * used in a TypeScript discriminating union to type-narrow from the     * `Match` type.     */    readonly type: 'mention';    /**     * @cfg {String} serviceName     *     * The service to point mention matches to. See {@link Autolinker#mention}     * for available values.     */    private readonly serviceName;    /**     * @cfg {String} mention (required)     *     * The Mention that was matched, without the '@' character.     */    private readonly mention;    /**     * @method constructor     * @param {Object} cfg The configuration properties for the Match     *   instance, specified in an Object (map).     */    constructor(cfg: MentionMatchConfig);    /**     * Returns a string name for the type of match that this class represents.     * For the case of MentionMatch, returns 'mention'.     *     * @return {String}     */    getType(): 'mention';    /**     * Returns the mention, without the '@' character.     *     * @return {String}     */    getMention(): string;    /**     * Returns the configured {@link #serviceName} to point the mention to.     * Ex: 'instagram', 'twitter', 'soundcloud'.     *     * @return {String}     */    getServiceName(): MentionService;    /**     * Returns the anchor href that should be generated for the match.     *     * @return {String}     */    getAnchorHref(): string;    /**     * Returns the anchor text that should be generated for the match.     *     * @return {String}     */    getAnchorText(): string;    /**     * Returns the CSS class suffixes that should be used on a tag built with     * the match. See {@link Autolinker.match.Match#getCssClassSuffixes} for     * details.     *     * @return {String[]}     */    getCssClassSuffixes(): string[];}export interface MentionMatchConfig extends AbstractMatchConfig {    serviceName: MentionService;    mention: string;}
 |