import { CSSVal } from '../component/CSSEditor';
import { CNodeModelDataType, CSSType, JSExpressionPropType } from '@chamn/model';
export type StyleArr = {
    property: string;
    value: any;
}[];
export declare const styleArr2Obj: (val: StyleArr) => Record<string, any>;
export declare const styleObjToArr: (obj?: Record<string, any>) => StyleArr;
export declare const styleList2Text: (val: StyleArr) => string;
export declare const formatStyleProperty: (styleList?: CNodeModelDataType['style']) => {
    normalProperty: {
        property: string;
        value: string;
    }[];
    expressionProperty: {
        property: string;
        value: JSExpressionPropType;
    }[];
    allProperty: {
        property: string;
        value: any;
    }[];
};
export declare const formatCSSTextProperty: (cssText: string) => {
    id: string;
    property: string;
    value: string;
}[];
export declare const formatCssToNodeVal: (className: string, val: CSSVal) => CSSType;
export declare const formatNodeValToEditor: (val?: CSSType) => CSSVal;
export declare const getColorFromStr: (str: string) => string[];
export type BoxShadowObjType = {
    offsetX: string | undefined;
    offsetY: string | undefined;
    blur: string | undefined;
    spread: string | undefined;
    color: string | undefined;
    type?: 'inset' | '';
};
export declare const parseBoxShadowString: (str: string) => BoxShadowObjType[];
