import { type CSSProperties } from 'vue'; /** * 设置html元素样式 */ export declare function setStyle(el: HTMLElement, style: { [key in keyof CSSProperties]: CSSProperties[key]; }): void; /** * 获取元素当前计算的样式 */ export declare function getStyle(el: HTMLElement, prop: keyof CSSStyleDeclaration): string | number | (() => ArrayIterator) | CSSRule | ((property: string) => string) | ((property: string) => string) | ((index: number) => string) | ((property: string) => string) | ((property: string, value: string | null, priority?: string) => void) | null; /** * */ export declare function getDir(el?: HTMLElement | null): string; /** * 获取元素内容盒子宽度 */ export declare function getContextBoxWidth(el: HTMLElement): number; /** * 用 js 对象的形式编写样式 */ export declare function cssObjectToString(cssObject: { [selector: string]: { [key in keyof CSSProperties]: CSSProperties[key]; }; }): string; /** * 当值为数值时添加 px 单位 */ export declare function addPxUnit(value: number | string | undefined): string | undefined;