export type ElementType = 'Controller' | 'DataTypes' | 'DataType' | 'Member' | 'Tag' | 'Routine' | 'Tags' | 'Routines' | 'RLLContent' | 'Program' | 'Programs' | 'LocalTags' | 'LocalTag' | 'AddOnInstructionDefinitions' | 'AddOnInstructionDefinition' | 'Modules' | 'Tasks' | 'Parameter' | 'ParameterConnection' | 'ParameterConnections' | 'Structure' | 'DataValueMember'; export default class Element { elem_id: string; _dom: any; constructor(document_tree: { declaration?: any; type?: string; name?: string; elements?: any[]; attributes?: any; }); /** * Returns a mutable dom reference to be manipulated by user * * @readonly * @memberof Document */ get dom(): any; get name(): any; /** * Finds the first desired element within the Document * * @param {string} type - Type of element to look for (e.g. Controller, Datatype, etc) * @param {object} [attr=null] - Object of attributes to match in element * @returns {object|null} found documents * @param {object} [search_tree=null] - Tree to search on * @memberof Document */ findOne(type: ElementType, attr?: any, ignore?: string[], search_tree?: null): Element | null; /** * Finds desired element within the Document * * @param {string} type - Type of element to look for (e.g. Controller, Datatype, etc) * @param {object} [attr=null] - Object of attributes to match in element * @param {Array} [ignore=null] - Names to Ignore * @param {object} [search_tree=null] - Tree to search on * @returns {Array|null} found documents * @memberof Document */ find(type: ElementType, attr?: null, ignore?: string[], search_tree?: null): Element[] | null; /** * Appends element to elem._dom.elements * * @param {Document} elem * @returns {Document} - this (for chaining) * @memberof Document */ append(elem: Element): this; /** * Returns a string representation of the current document * * @returns {string} * @memberof Document */ toString(): string; /** * Check if passed object is a document * * @static * @param {object} doc - object to test * @returns {boolean} * @memberof Document */ static isElement(doc: Element): boolean | ""; }