import type { Component } from '@toddledev/core/dist/component/component.types'; /** * Used to replace any recursive references to the root component, as it would be rendered both by toddle runtime * and by the custom element itself (which would cause an infinite loop) */ export declare const replaceTagInNodes: (oldTag: string, newTag: string) => (component: Component) => { nodes: {}; name: string; version?: 2; page?: string; route?: import("@toddledev/core/dist/component/component.types").PageRoute | null; attributes: Record; variables: Record; formulas?: Record; contexts?: Record; workflows?: Record; apis: Record; events?: import("@toddledev/core/dist/component/component.types").ComponentEvent[]; onLoad?: import("@toddledev/core/dist/component/component.types").EventModel; onAttributeChange?: import("@toddledev/core/dist/component/component.types").EventModel; exported?: boolean; };