@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
15 lines (14 loc) • 578 B
TypeScript
import type { BlendModeValue } from '../types';
/**
* Parses a CSS blend mode value into structured components
* @param input - The CSS blend mode string
* @returns Parsed blend mode object or null if invalid
*/
export declare function parse(input: string): BlendModeValue | null;
/**
* Converts a parsed blend mode back to a CSS value string
* @param parsed - The parsed blend mode object
* @returns CSS value string or null if invalid
*/
export declare function toCSSValue(parsed: BlendModeValue | null): string | null;
export type { BlendModeValue } from '../types';