import { TreeVisitor } from "./visitor"; export declare type UnknownObject = { [key: string]: unknown; }; export declare type UnkonwnArray = Array; /** * This is an implementation of the `TreeVisitor` interface that traverses any * Javascript value as a tree. */ export declare class ObjectVisitor implements TreeVisitor { /** The root node (value) */ protected rootNode: T; protected pred: (n: any) => n is T; constructor( /** The root node (value) */ rootNode: T, pred: (n: any) => n is T); get root(): T; children(cur: T): T[]; }