/*! * 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 { HAlignClasses, IJodit, ImageHAlign, Nullable } from "../../../types/index"; /** * The class names to align `elm` with: `alignClasses` for its tag, or for the * media in it when it wraps media (a `mediaWrappers` wrapper, `jodit` or * `jodit-media`) or a captioned image (see `imageCaption`) */ export declare function getAlignClasses(jodit: IJodit, elm: Nullable): Nullable; /** * Align image, with `classes` (see `alignClasses`) instead of inline styles * when they are given */ export declare function hAlignElement(image: HTMLElement, align: ImageHAlign, classes?: Nullable): void; /** * Remove the alignment `hAlignElement` set on an element, with the classes of * every alignment in `classes` */ export declare function clearHAlign(elm: HTMLElement, classes?: Nullable): void; /** * The alignment `hAlignElement` has set on an element */ export declare function getHAlign(elm: HTMLElement, classes?: Nullable): ImageHAlign; /** * Remove text-align style for all selected children */ export declare function clearAlign(node: Node): void; export declare function alignElement(command: string, box: HTMLElement): void;