UNPKG

@wix/css-property-parser

Version:

A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance

20 lines (19 loc) 722 B
import type { GlobalKeyword, CSSLengthValue, CSSPercentageValue, CSSVariableValue } from '../types'; /** * Generic gap property parser * @param value - CSS value string to parse * @returns Parsed gap value or null if invalid */ export declare function parseGapProperty(value: string): CSSLengthValue | CSSPercentageValue | { type: 'keyword'; keyword: 'normal' | GlobalKeyword; } | CSSVariableValue | null; /** * Generic gap property toCSSValue converter * @param parsed - Parsed gap value * @returns CSS string or null if invalid */ export declare function gapToCSSValue(parsed: CSSLengthValue | CSSPercentageValue | { type: 'keyword'; keyword: string; } | CSSVariableValue | null): string | null;