zhangjian
2023-05-30 dabbcc356af21f9f2f88ac69ff07994e6e32e4fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import Attributor from './attributor/attributor';
import { Blot } from './blot/abstract/blot';
export interface BlotConstructor {
    blotName: string;
    new (node: Node, value?: any): Blot;
    create(value?: any): Node;
}
export declare class ParchmentError extends Error {
    message: string;
    name: string;
    stack: string;
    constructor(message: string);
}
export declare const DATA_KEY = "__blot";
export declare enum Scope {
    TYPE = 3,
    LEVEL = 12,
    ATTRIBUTE = 13,
    BLOT = 14,
    INLINE = 7,
    BLOCK = 11,
    BLOCK_BLOT = 10,
    INLINE_BLOT = 6,
    BLOCK_ATTRIBUTE = 9,
    INLINE_ATTRIBUTE = 5,
    ANY = 15,
}
export declare function create(input: Node | string | Scope, value?: any): Blot;
export declare function find(node: Node | null, bubble?: boolean): Blot | null;
export declare function query(query: string | Node | Scope, scope?: Scope): Attributor | BlotConstructor | null;
export declare function register(...Definitions: any[]): any;