import { Blot, Parent } from './blot';
|
import LinkedList from '../../collection/linked-list';
|
import ShadowBlot from './shadow';
|
declare class ContainerBlot extends ShadowBlot implements Parent {
|
static defaultChild: string;
|
static allowedChildren: any[];
|
children: LinkedList<Blot>;
|
domNode: HTMLElement;
|
constructor(domNode: Node);
|
appendChild(other: Blot): void;
|
attach(): void;
|
build(): void;
|
deleteAt(index: number, length: number): void;
|
descendant(criteria: {
|
new (): Blot;
|
}, index: number): [Blot | null, number];
|
descendant(criteria: (blot: Blot) => boolean, index: number): [Blot | null, number];
|
descendants(criteria: {
|
new (): Blot;
|
}, index: number, length: number): Blot[];
|
descendants(criteria: (blot: Blot) => boolean, index: number, length: number): Blot[];
|
detach(): void;
|
formatAt(index: number, length: number, name: string, value: any): void;
|
insertAt(index: number, value: string, def?: any): void;
|
insertBefore(childBlot: Blot, refBlot?: Blot): void;
|
length(): number;
|
moveChildren(targetParent: Parent, refNode?: Blot): void;
|
optimize(context: {
|
[key: string]: any;
|
}): void;
|
path(index: number, inclusive?: boolean): [Blot, number][];
|
removeChild(child: Blot): void;
|
replace(target: Blot): void;
|
split(index: number, force?: boolean): Blot;
|
unwrap(): void;
|
update(mutations: MutationRecord[], context: {
|
[key: string]: any;
|
}): void;
|
}
|
export default ContainerBlot;
|