1 | import { NodeSpec, Node as PMNode } from 'prosemirror-model';
|
2 | import { BreakoutMarkDefinition } from '../marks';
|
3 | import { MarksObject, NoMark } from './types/mark';
|
4 | import { NonNestableBlockContent } from './types/non-nestable-block-content';
|
5 |
|
6 |
|
7 |
|
8 | export interface ExpandBaseDefinition {
|
9 | type: 'expand';
|
10 | attrs: {
|
11 | title?: string;
|
12 | };
|
13 | |
14 |
|
15 |
|
16 |
|
17 | content: Array<NonNestableBlockContent>;
|
18 | marks?: Array<any>;
|
19 | }
|
20 |
|
21 |
|
22 |
|
23 | export declare type ExpandDefinition = ExpandBaseDefinition & NoMark;
|
24 |
|
25 |
|
26 |
|
27 | export declare type ExpandWithBreakoutDefinition = ExpandBaseDefinition & MarksObject<BreakoutMarkDefinition>;
|
28 | export declare const expand: NodeSpec;
|
29 | export declare const toJSON: (node: PMNode) => {
|
30 | attrs: {
|
31 | [key: string]: any;
|
32 | };
|
33 | };
|