/** * The global meta object is a root of all default settings, which are recognizable by Handsontable. * Other layers are inherited from this object. Adding, removing, or changing property in that * object has a direct reflection to all layers such as: TableMeta, ColumnMeta, or CellMeta layers. * * +-------------+. * │ GlobalMeta │ * │ (prototype) │ * +-------------+\ * │ \ * │ \ * \│/ _\| * +-------------+ +-------------+. * │ TableMeta │ │ ColumnMeta │ * │ (instance) │ │ (prototype) │ * +-------------+ +-------------+. * │ * │ * \│/ * +-------------+. * │ CellMeta │ * │ (instance) │ * +-------------+. */ export default class GlobalMeta { /** * An alias for the constructor. Necessary for inheritance for creating new layers. * * @type {TableMeta} */ metaCtor: { new (): {}; }; /** * Main object (prototype of the internal TableMeta class), holder for all default settings. * * @type {object} */ meta: Record; /** * Initializes the global meta layer, populates the meta prototype with schema defaults, and attaches the Handsontable instance reference. */ constructor(hot: unknown); /** * Gets constructor of the global meta object. Necessary for inheritance for creating the next meta layers. * * @returns {Function} */ getMetaConstructor(): { new (): {}; }; /** * Gets settings object for this layer. * * @returns {object} */ getMeta(): Record; /** * Updates global settings object by merging settings with the current state. * * @param {object} settings An object to merge with. */ updateMeta(settings: Record): void; }