/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net */ /** * @module helpers/utils */ import type { IStyle, StyleValue, VHTMLElement } from "../../../types/index"; export declare function css(element: HTMLElement, key: 'left' | 'top' | 'bottom' | 'right' | 'width' | 'min' | 'max' | 'height' | 'margin' | 'padding' | 'fontsize' | 'font-size'): number; export declare function css(element: HTMLElement, key: keyof CSSStyleDeclaration): string | number; export declare function css(element: HTMLElement, key: string | IStyle): string | number; export declare function css(element: HTMLElement, key: string | IStyle, value: StyleValue): string | number; /** * @deprecated Use `cssInline(element, key)` for an exact inline read. * The boolean mode still normalizes the value (`'0px'` → `0`, `bold` → `700`). */ export declare function css(element: HTMLElement, key: string | IStyle, onlyStyleMode: boolean): string | number; /** * Clear center align */ /** * Read the exact inline value of a CSS property (the `style` attribute). * Unlike `css()` it never touches computed styles (no layout access) and does * not normalize the result, so it is safe for exact string comparisons and * save/restore. Returns an empty string when the property is not set inline. * * @example * ```js * cssInline(elm, 'zIndex'); // '' or '100' * cssInline(elm, 'width'); // '0px' (css(elm, 'width', true) would return 0) * ``` */ export declare function cssInline(element: VHTMLElement, key: string): string; export declare const clearCenterAlign: (image: HTMLElement) => void;