import type { Spacing } from './ThemeablePropValues'; type DeepStringRecord = { [key: string]: string | DeepStringRecord; }; /** * Converts shorthand spacing values into CSS strings using theme spacing tokens. * * This function parses space-separated spacing values (margin, padding) and resolves theme * tokens to their actual CSS values. It supports CSS shorthand syntax (1-4 values), nested * theme token paths using dot notation, and automatically converts hyphen-case tokens to camelCase. * * @param {Spacing | undefined} value - The shorthand spacing value string containing space-separated tokens or CSS values. * Tokens can be in camelCase (mediumSmall) or hyphen-case (medium-small). * Can be undefined, in which case '0' is returned. * @param {Record} spacingMap - The spacing theme object containing spacing tokens and nested values. * Typically comes from `sharedTokens.margin.spacing` or `sharedTokens.padding.spacing` in the component theme. * * @returns {string} The resolved CSS spacing string ready to be used in styles. * * @example * // Hyphen-case tokens are converted to camelCase * calcSpacingFromShorthand('medium-small', spacingMap) // resolves to spacingMap.mediumSmall * calcSpacingFromShorthand('x-large small', spacingMap) // resolves to spacingMap.xLarge + spacingMap.small * * // Dot notation paths are NOT converted * calcSpacingFromShorthand('gap.nested-value', spacingMap) // resolves to spacingMap.gap['nested-value'] * * // CSS values like 'none', 'auto', '10px' are returned as-is * calcSpacingFromShorthand('none', spacingMap) // returns 'none' */ export declare function calcSpacingFromShorthand(value: Spacing | undefined, spacingMap: DeepStringRecord): string | undefined; export {}; //# sourceMappingURL=calcSpacingFromShorthand.d.ts.map