1 | import { EditorNode, SerializeOptions, Serializable } from './StructureNodes';
|
2 | import { SchemaType } from './parts/Schema';
|
3 | export declare type PartialEditorNode = {
|
4 | id?: string;
|
5 | title?: string;
|
6 | options?: {
|
7 | id?: string;
|
8 | type?: string;
|
9 | };
|
10 | };
|
11 | export declare class EditorBuilder implements Serializable {
|
12 | protected spec: PartialEditorNode;
|
13 | constructor(spec?: EditorNode);
|
14 | id(id: string): EditorBuilder;
|
15 | getId(): string | undefined;
|
16 | title(title: string): EditorBuilder;
|
17 | getTitle(): string | undefined;
|
18 | documentId(documentId: string): EditorBuilder;
|
19 | getDocumentId(): string | undefined;
|
20 | schemaType(documentType: SchemaType | string): EditorBuilder;
|
21 | getSchemaType(): string | undefined;
|
22 | serialize({ path, index, hint }?: SerializeOptions): EditorNode;
|
23 | clone(withSpec?: PartialEditorNode): EditorBuilder;
|
24 | }
|