import { Mark, MarkSpec } from 'prosemirror-model'; export declare type LocalId = string; export interface FragmentAttributes { /** * @minLength 1 */ localId: LocalId; name?: string; } /** * @name fragment_mark * @description Indicates that the elements decorated with this mark belong to a "fragment" entity, which represents a collection of ADF nodes. * This entity can be referred to later by its `localId` attribute. */ export interface FragmentDefinition { type: 'fragment'; attrs: FragmentAttributes; } export interface FragmentMark extends Mark { attrs: FragmentAttributes; } export declare const fragment: MarkSpec; export declare const toJSON: (mark: Mark) => { type: string; attrs: { name?: any; localId: any; }; };