mention-utils.d.ts 454 B

12345678910
  1. /**
  2. * Determines if the given character can be part of a mention's text characters.
  3. */
  4. export declare function isMentionTextChar(char: string): boolean;
  5. /**
  6. * Determines if the given `mention` text is valid.
  7. */
  8. export declare function isValidMention(mention: string, serviceName: MentionService): boolean;
  9. export declare type MentionService = 'twitter' | 'instagram' | 'soundcloud' | 'tiktok';
  10. export declare const mentionServices: MentionService[];