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