export interface ADFEntityMark { type: string; attrs?: { [name: string]: any; }; } export interface ADFEntity { type: string; attrs?: { [name: string]: any; }; content?: Array; marks?: Array; text?: string; [key: string]: any; } export declare type Visitor = (node: ADFEntity, parent: EntityParent, index: number, depth: number) => ADFEntity | false | undefined | void; export declare type VisitorCollection = { [nodeType: string]: Visitor; }; export declare type EntityParent = { node?: ADFEntity; parent?: EntityParent; };