/** * Type definitions. Without runtime implementation.\ * Bundler plugin required. * ```ts * type create = >(rule: T)=> CreateReturnType; * type createTheme = (themeSelector: CreateThemeSelector, rule: T) => CreateThemeReturnType; * type createStatic = (rule: T)=> T; * type keyframes = (rule: T) => string; * type viewTransition = (rule: T) => string; * type marker = (id: string, pseudo: string) => Marker; * type extended = (id: I, pseudo: P) => Extended; * type use = (...rules: StyleName[]) => string; * ``` */ declare module '@plumeria/core' { import type { AtomicClassNameFor, StyleName, CSSProperties, CreateStyleValue, CreateReturnType, CreateTheme, CreateThemeSelector, CreateThemeReturnType, CreateStatic, Keyframes, ViewTransition, Marker, Extended, } from '#types'; global { namespace React { interface HTMLAttributes { styleName?: StyleName; } interface SVGAttributes { styleName?: StyleName; } } } export type { AtomicClassNameFor, StyleName, CSSProperties }; export const create: create; export type create = >( rule: T, ) => CreateReturnType; export const createTheme: createTheme; export type createTheme = ( themeSelector: CreateThemeSelector, rule: T, ) => CreateThemeReturnType; export const createStatic: createStatic; export type createStatic = (rule: T) => T; export const keyframes: keyframes; export type keyframes = (rule: T) => string; export const viewTransition: viewTransition; export type viewTransition = ( rule: T, ) => string; export const marker: marker; export type marker = (id: string, pseudo: string) => Marker; export const extended: extended; export type extended = ( id: I, pseudo: P, ) => Extended; export const use: use; export type use = (...rules: StyleName) => string; }