1
0
forked from Rowland/EG
EG/Cesium-1.132/node_modules/autolinker/dist/es2015/parser/mention-utils.d.ts
2025-08-25 17:48:13 +08:00

17 lines
684 B
TypeScript

/**
* Determines if the given character can be part of a mention's text characters.
*
* Accepts characters that match the RegExp `/[-\w.]/`, which are the possible
* mention characters for any service.
*
* We'll confirm the match based on the user-configured service name after the
* match is found.
*/
export declare function isMentionTextChar(charCode: number): boolean;
/**
* Determines if the given `mention` text is valid.
*/
export declare function isValidMention(mention: string, serviceName: MentionService): boolean;
export type MentionService = 'twitter' | 'instagram' | 'soundcloud' | 'tiktok' | 'youtube';
export declare const mentionServices: MentionService[];