UNPKG

1.57 kBTypeScriptView Raw
1import type { CompositionStyles } from "./composition";
2import type { GlobalStyleIdentityFn, KeyframeIdentityFn, SystemStyleIdentityFn } from "./css.types";
3import type { RecipeIdentityFn, SlotRecipeIdentityFn } from "./recipe.types";
4import type { ConditionRecord, SemanticTokenDefinition, SystemConfig, TokenDefinition } from "./types";
5export declare const defineConditions: <T extends ConditionRecord>(v: T) => T;
6export declare const defineRecipe: RecipeIdentityFn;
7export declare const defineSlotRecipe: SlotRecipeIdentityFn;
8export declare const defineKeyframes: KeyframeIdentityFn;
9export declare const defineGlobalStyles: GlobalStyleIdentityFn;
10export declare const defineStyle: SystemStyleIdentityFn;
11export declare const defineTextStyles: (v: CompositionStyles["textStyles"]) => import("./composition").TextStyles;
12export declare const defineAnimationStyles: (v: CompositionStyles["animationStyles"]) => import("./composition").AnimationStyles;
13export declare const defineLayerStyles: (v: CompositionStyles["layerStyles"]) => import("./composition").LayerStyles;
14type ProxyValue<T> = {
15 <Value>(definition: Value extends T ? Value : T): Value;
16} & {
17 [K in keyof Required<T>]: <Value>(definition: Value extends T[K] ? Value : T[K]) => Value;
18};
19export declare const defineTokens: ProxyValue<TokenDefinition>;
20export declare const defineSemanticTokens: ProxyValue<SemanticTokenDefinition>;
21export declare const defineConfig: (v: SystemConfig) => SystemConfig;
22export declare const mergeConfigs: (...configs: SystemConfig[]) => SystemConfig;
23export {};