import { ProjectPluginStructure, UIDLElement, UIDLNode } from '@teleporthq/teleport-types'; /** * Traverses a UIDL node tree and calls `fn` for every UIDLElement found. * Handles element nodes, conditionals, repeats, slots, CMS nodes, and * data-source nodes. */ export declare const traverseElements: (node: UIDLNode, fn: (element: UIDLElement) => void) => void; /** * Scans all pages and components in the project UIDL and calls `fn` for * every UIDLElement found anywhere in the project. */ export declare const traverseProjectElements: (uidl: ProjectPluginStructure['uidl'], fn: (element: UIDLElement) => void) => void; /** * Returns true when any element in the project UIDL has one of the given * element/semantic types. Used by project plugins to detect primitive usage. */ export declare const projectUsesElementTypes: (uidl: ProjectPluginStructure['uidl'], elementTypes: Set) => boolean; //# sourceMappingURL=uidl-element-traversal.d.ts.map