UNPKG

@kuma-ui/sheet

Version:

🐻 Kuma UI is a utility-first, zero-runtime CSS-in-JS library that offers an outstanding developer experience and optimized performance.

24 lines (22 loc) 604 B
type ResponsiveStyle = { base: string; media: { [breakpoint: string]: string; }; }; interface ICache<T> { get: (key: string) => T | undefined; set: (key: string, value: T) => void; reset: () => void; } declare class StyleCache implements ICache<ResponsiveStyle> { private static instance; private cache; private constructor(); static getInstance(): StyleCache; get(key: string): ResponsiveStyle | undefined; set(key: string, styles: ResponsiveStyle): void; reset(): void; } declare const styleCache: StyleCache; export { ICache, styleCache };