UNPKG

@mincho-js/css

Version:
10 lines (9 loc) 855 B
import { ComplexCSSRule, GlobalCSSRule } from '@mincho-js/transform-to-vanilla'; export declare function globalCss(selector: string, rule: GlobalCSSRule): void; export declare const globalStyle: typeof globalCss; export declare function css(style: ComplexCSSRule, debugId?: string): string; export declare const style: typeof css; export declare function cssVariants<StyleMap extends Record<string | number, ComplexCSSRule>>(styleMap: StyleMap, debugId?: string): Record<keyof StyleMap, string>; export declare function cssVariants<Data extends Record<string | number, unknown>, Key extends keyof Data, MapData extends (value: Data[Key], key: Key) => ComplexCSSRule>(data: Data, mapData: MapData, debugId?: string): Record<keyof Data, string>; export declare const styleVariants: typeof cssVariants; export declare function mincho$<T>(block: () => T): T;