UNPKG

stoop

Version:

CSS-in-JS library with type inference, theme creation, and variants support.

17 lines (16 loc) 759 B
/** * CSS keyframes animation API. * Creates a function that generates and injects @keyframes rules. * Caches animations by content hash to prevent duplicates. */ import type { CSS, Theme, ThemeScale } from "../types"; /** * Creates a keyframes animation function. * Generates and injects @keyframes rules with caching to prevent duplicates. * * @param prefix - Optional prefix for animation names * @param theme - Optional theme for token resolution * @param themeMap - Optional theme scale mappings * @returns Function that accepts keyframes objects and returns animation names */ export declare function createKeyframesFunction(prefix?: string, theme?: Theme, themeMap?: Record<string, ThemeScale>): (keyframes: Record<string, CSS>) => string;