import { OptionsConfig } from "@storybook/blocks"; import { Args } from "@storybook/web-components"; type CSSCustomProp = `--${string}`; type EnsurePrefix = T extends `${P}${string}` ? T : `${P}${T}`; export type CSSVarsArguments = { [x in EnsurePrefix]: string; }; declare enum PALETTES { RED = "red", GREEN = "green", BLUE = "blue", YELLOW = "yellow", GRAY = "gray", AVATAR = "avatar", SUBJECT = "subject" } /** * Get Design System color tokens. * Can be used in components stories controls as follows: * @example ``` * argTypes={{ * "--z-component--background-color": { * control: {type: "select"}, * options: getColorTokens(), * } * }}``` * * and then in the component tag * * `````` */ export declare function getColorTokens(): CSSCustomProp[]; /** * Get Design System color palettes. */ export declare function getPalettes(): Record; /** * Get Design System color tokens wrapped with CSS `var()`. * @example ``` * argTypes={{ * "--z-component--background-color": { * control: {type: "select"}, * options: getColorTokens(), * } * }}``` * * and then in the component tag * * `````` */ export declare function getColorVars(): `var(${CSSCustomProp})`[]; /** * Get Design System color tokens as readable labels for `control` configuration. * It assumes you set the options using the `getColorTokens()` function, so expected options are something like `var(--color-token)`. * @example ``` * argTypes={{ * "--z-component--background-color": { * options: getColorTokens(), * control: { * type: "select", * labels: getColorVarsLabels(), * }, * } * }}``` */ export declare function getColorVarsLabels(): OptionsConfig["labels"]; /** * Get Design System theme's color tokens. * @param name Name of the theme, like `theme-black`. * @param variant Variant of the theme, like `theme-black--red`. */ export declare function getThemeColorTokens(name: string, variant?: string | undefined): Record; /** * Get a Storybook Arg config for Design System color tokens. * Useful to configure a control for the stories. * @param nullable - If true, it will add a `null` option to the list of options, with a label of "-" to allow the user to deselect a color value. * @example ``` * "--z-component--background-color": getColorTokenArgConfig() * ``` */ export declare function getColorTokenArgConfig(nullable?: boolean): Args; export {};