import tokens, { type CSSTokenMap } from './artifacts/token-names'; type Tokens = typeof tokens; /** * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token. * This should be used to implement design decisions throughout your application. * * Note: With `@atlaskit/babel-plugin-tokens`, this function can be pre-compiled and a fallback value automatically inserted. * * @param {string} path - A dot-separated token name (example: `'color.background.brand'` or `'spacing.scale.100'`). * @param {string} [fallback] - The fallback value that should render when token CSS is not present in your app. * * @example * ``` *
* ``` * */ declare function token(path: T, fallback?: string): CSSTokenMap[T]; export default token;