class PubBase {
    constructor(elem, options) {
        this.timestamp = Date.now();
        this.respSource = null;
        this.initialized = false;
        this.renderCount = 0;
        /**
        * @name PubBase.targetEl
        * @description Target element.
        * @type getEl
        */
        this.targetEl = null;
        /**
        * @name PubBase.targetData
        * @description Target data.Enabled when the host is data, e.g. "observe" module.
        * @type getEl
        */
        this.targetData = null;
        /**
        * @name PubBase.options
        * @description Parameters of the instance.
        * @type object
        */
        this.options = {};
        /**
         * @name PubBase.destroyed
         * @description Destruction state.
         * @type boolean
         */
        this.destroyed = false;
    }
    /**
    * @description Initialization instance.
    * @param {fn_cb_none} [cb] - Callback execution after initialization.
    * @returns {any} - Return the instance itself.
    */
    async init(cb) { }
    /**
     * @description Destroy instance and prohibit use.
     * @param {fn_cb_none} [cb] - Callback execution after destruction.
     * @returns {any} - Return the instance itself.
     */
    destroy(cb) { }
}
export default PubBase;
/**
 * @callback fn_cb
 * @description Normal callback function, supports one or more parameters.
 * @returns any.
 */
/**
 * @callback fn_cb_obj
 * @description Normal callback function, supports one parameter i.e. one object.
 * @returns any.
 */
/**
 * @callback fn_cb_options
 * @description Normal callback function, supports one parameter i.e. the options of instance.
 * @returns any.
 */
/**
 * @callback fn_cb_none
 * @description Normal callback function, no parameters.
 * @returns any.
 */
/**
 * @callback fn_cb_placement
 * @description Normal callback function that supports one parameter i.e. placement.
 * @returns any.
 */
/**
 * @callback fn_cb_node
 * @description Normal callback function that supports one parameter i.e. a node.
 * @returns any.
 */
/**
 * @callback fn_cb_html
 * @description Normal callback function that supports one parameter i.e.  a piece of html text.
 * @returns any.
 */
/**
 * @callback fn_cb_data
 * @description Normal callback function that supports one parameter i.e. any data.
 * @returns any.
 */
/**
 * @callback fn_cb_bool
 * @description Normal callback function that supports one parameter i.e. a boolean value.
 * @returns any.
 */
