/** * Handles the theme-related style operations. */ export declare class StylesHandler { #private; /** * Initializes a new instance of the `StylesHandler` class. * * @param {object} options The options for the `StylesHandler` instance. * @param {Core} options.hot The instance of the Handsontable. * @param {HTMLElement} options.rootElement The root element of the instance. * @param {Document} options.rootDocument The root document of the instance. * @param {function(string)} options.onThemeChange The callback function to be called when the theme changes. * @param {boolean} options.injectCoreCss Whether to inject the core styles into the document head. */ constructor({ hot, rootElement, rootDocument, onThemeChange, injectCoreCss }: { hot: unknown; rootElement: HTMLElement; rootDocument: Document; onThemeChange?: Function; injectCoreCss?: boolean; }); /** * Retrieves the value of a specified CSS variable. * * @param {string} variableName - The name of the CSS variable to retrieve. * @returns {number|null|undefined} The value of the specified CSS variable, or `undefined` if not found. */ getCSSVariableValue(variableName: string): unknown; /** * Retrieves the computed style value for a specified CSS property of a `td` element. * * @param {string} cssProperty - The CSS property to retrieve the value for. * @returns {number|string|undefined} The value of the specified CSS property, or `undefined` if not found. */ getStyleForTD(cssProperty: string): string; /** * Calculates the row height based on the current theme and CSS variables. * * @param {number} [visualRowIndex] The visual row index. * @returns {number} The calculated row height. */ getDefaultRowHeight(visualRowIndex?: number): number | null; /** * Checks if the cells are using the `border-box` box-sizing model. * * @returns {boolean} */ areCellsBorderBox(): boolean; /** * Applies the specified theme to the instance. * * @param {string|undefined|boolean} [themeName] - The name of the theme to apply. */ useTheme(themeName: string | undefined | boolean): void; /** * Gets the name of the theme. * * @returns {string|undefined} */ getThemeName(): string | undefined; /** * Clears all cached CSS variable values and computed styles. * This should be called when theme CSS variables are dynamically updated. */ clearCache(): void; }