import { type AnyComponent, type ComponentDefinition, ComponentContext } from '../classes/Component.js'; /** * Register a component in such a way that it can be found by its name later. Uses the class * name as unique key. * * @TODO test that this works well in minified JS * * This helps avoid circular dependencies in components that can be a descendant of themselves. * For example, Table --> Row --> Cell --> Table */ export declare function registerComponent(component: ComponentDefinition): ComponentDefinition; /** * Transforms a list of (OOXML) XML nodes to component instances based on a list of possible component * names. The component names must have been registered before using {@link registerComponent}. * * This is useful for instantiating the children of a component based on an existing DOCX file. */ export declare function createChildComponentsFromNodes(names: string[], nodes: Node[], context: ComponentContext): T[];