import { RawElement, RawNode, RawText } from './types/raw';
import { ElementNode } from './types/element';
export declare const isElement: (node: RawNode) => node is RawElement;
export declare const isText: (node: RawNode) => node is RawText;
export declare const rawToElementNode: (el?: RawElement) => ElementNode | undefined;
export declare const elementNodeToRaw: (node: ElementNode) => RawElement;
export declare const findChild: (el: ElementNode | undefined, name: string) => ElementNode | undefined;
export declare const findAllChildren: (el: ElementNode | undefined, name: string) => ElementNode[];
export declare const ensureChild: (parent: ElementNode, child: ElementNode) => void;
export declare const removeChildByName: (parent: ElementNode, name: string) => void;
export declare const hasChild: (el: ElementNode | undefined, name: string) => boolean;
export declare const pickElement: (raw: RawElement, name: string) => RawElement | undefined;
export declare const pickAllElements: (raw: RawElement, name: string) => RawElement[];
export declare const getTextFromRaw: <T extends {
    text: string;
    extra?: any;
    widgetMeta?: any;
    fieldMeta?: any;
    valuePath?: string;
}>(el: RawElement) => T;
export declare const setTextToRaw: (el: RawElement, text: string, extra?: any, widgetMeta?: any, fieldMeta?: any, valuePath?: string) => void;
