/**
 * @author Thomas Barnekow
 * @license MIT
 */
import { XDocument, XElement } from './internal.js';
/**
 * Represents a node or an attribute in an XML tree.
 */
export declare abstract class XObject {
    /**
     * Gets the `XDocument` object for this `XObject`.
     */
    get document(): XDocument | null;
    /**
     * Gets the parent `XElement` of this `XObject`.
     */
    get parent(): XElement | null;
    /**
     * Returns a string that represents the current object.
     *
     * @returns A string that represents the current object.
     */
    abstract toString(): string;
}
