UNPKG

604 BTypeScriptView Raw
1import { NodeSpec, Node as PMNode } from 'prosemirror-model';
2export declare enum USER_TYPES {
3 DEFAULT = "DEFAULT",
4 SPECIAL = "SPECIAL",
5 APP = "APP"
6}
7export declare type UserType = keyof typeof USER_TYPES;
8export interface MentionAttributes {
9 id: string;
10 text?: string;
11 userType?: UserType;
12 accessLevel?: string;
13}
14/**
15 * @name mention_node
16 */
17export interface MentionDefinition {
18 type: 'mention';
19 attrs: MentionAttributes;
20}
21export declare const mention: NodeSpec;
22export declare const toJSON: (node: PMNode) => {
23 attrs: {
24 [key: string]: any;
25 };
26};