@aesthetic/style
Version:
A low-level, high-performance, atomic-based CSS-in-JS style engine.
13 lines • 1.19 kB
TypeScript
import { ClassName, CSS, CSSType, FontFace, GenericProperties, Import, NativeProperty, RenderOptions, Value, VariablesMap } from '@aesthetic/types';
import { StyleEngine } from '../types';
export declare function formatVariable(name: string): string;
export declare function formatProperty(property: string): string;
export declare function formatValue(property: NativeProperty, value: unknown, options: RenderOptions, engine: StyleEngine): string;
export declare function formatDeclaration(key: string, value: Value | Value[]): CSS;
export declare function formatFontFace(properties: Partial<FontFace>): CSSType.AtRule.FontFace;
export declare function formatImport(value: Import | string): string;
export declare function formatRule(className: ClassName, block: CSS, { media, selector, supports }: RenderOptions): CSS;
export declare function formatVariableBlock(variables: VariablesMap): CSS;
export declare function createDeclaration(property: string, value: unknown, options: RenderOptions, engine: StyleEngine): CSS;
export declare function createDeclarationBlock(properties: GenericProperties, options: RenderOptions, engine: StyleEngine): CSS;
//# sourceMappingURL=syntax.d.ts.map