import type { Theme, ColorScale, NeutralColorScale } from '../../theme'; import type { CSSPropValue } from './css-props.types'; declare type ColorName = keyof Theme['colors']; declare type ColorNameWithoutNeutral = Exclude; declare type ColorNameNeutral = Extract; declare type ColorScaleKey = keyof ColorScale; declare type NeutralColorScaleKey = keyof NeutralColorScale; export declare type ShorthandThemeColor = `${ColorNameWithoutNeutral}.${ColorScaleKey}` | `${ColorNameNeutral}.${NeutralColorScaleKey}`; declare type Space = Extract; declare type SpaceKey = keyof Theme['space']; export declare type ShorthandThemeSpace = `${Space}.${SpaceKey}`; /** * Parses dot-syntax color and spacing strings from the theme. If parsing * fails, it returns the unchanged value that was passed in. * * **Examples:** * * - `"primary.10"` -> `theme.colors.primary[10]` * - `"space.2"` -> `theme.space[2]` * - `"hello.5"` -> `"hello.5"` * - `"yellow"` -> `"yellow"` */ export declare function parseIfShorthandThemeValue(value: CSSPropValue, theme: Theme): Exclude; export {};