1 | import { NodeSpec, Node as PMNode } from 'prosemirror-model';
|
2 | import { TextDefinition as Text } from './text';
|
3 | import { BreakoutMarkDefinition } from '../marks/breakout';
|
4 | import { MarksObject, NoMark } from './types/mark';
|
5 |
|
6 |
|
7 |
|
8 | export declare type CodeBlockBaseDefinition = {
|
9 | type: 'codeBlock';
|
10 | |
11 |
|
12 |
|
13 | content?: Array<Text & NoMark>;
|
14 | marks?: Array<any>;
|
15 | attrs?: CodeBlockAttrs;
|
16 | };
|
17 | export declare type CodeBlockAttrs = {
|
18 | language?: string;
|
19 | };
|
20 |
|
21 |
|
22 |
|
23 | export declare type CodeBlockDefinition = CodeBlockBaseDefinition & NoMark;
|
24 |
|
25 |
|
26 |
|
27 | export declare type CodeBlockWithMarksDefinition = CodeBlockBaseDefinition & MarksObject<BreakoutMarkDefinition>;
|
28 | export declare const codeBlock: NodeSpec;
|
29 | export declare const toJSON: (node: PMNode) => {
|
30 | attrs: Record<string, any>;
|
31 | };
|