1 | import { Path, Descendant, ExtendedType, Ancestor } from '..';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export interface BaseElement {
|
8 | children: Descendant[];
|
9 | }
|
10 | export declare type Element = ExtendedType<'Element', BaseElement>;
|
11 | export interface ElementInterface {
|
12 | isAncestor: (value: any) => value is Ancestor;
|
13 | isElement: (value: any) => value is Element;
|
14 | isElementList: (value: any) => value is Element[];
|
15 | isElementProps: (props: any) => props is Partial<Element>;
|
16 | isElementType: <T extends Element>(value: any, elementVal: string, elementKey?: string) => value is T;
|
17 | matches: (element: Element, props: Partial<Element>) => boolean;
|
18 | }
|
19 | export declare const Element: ElementInterface;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export declare type ElementEntry = [Element, Path];
|
25 |
|
\ | No newline at end of file |