= (props: P, renderer: CSSRenderer) => CSSStyle; export declare type CSSKeyframes
= (props: P, renderer: CSSRenderer) => Record (fnOrStyle: CSSRule | CSSStyle): CSSRule ;
export declare function cssKeyframes (keyframesRuleFn: CSSKeyframes ): CSSKeyframes ;
export interface CSSFontProps {
fontDisplay?: 'auto' | 'block' | 'swap' | 'fallback' | 'optional';
fontVariant?: string;
fontWeight?: string;
fontStretch?: string;
fontStyle?: string;
unicodeRange?: string;
}
export declare function useStaticStyle (): (selector: string, style: CSSStyle) => void;
export declare function useStyle (): (...rules: CSSRule []) => string;
export declare function useStyle (props: P): (...rules: CSSRule []) => string;
export declare function useFont (): (family: string, files: string | string[], fontProps?: CSSFontProps) => void;
export declare function useFont (props: P): (family: string, files: string | string[], fontProps?: CSSFontProps) => void;
export declare function useStyleRenderer(): IRenderer;
export declare type StylePropsFromProps = keyof P extends never ? {
styleProps?: P;
} : {
styleProps: P;
};
export declare type RefTypeForElement {
styleRules: CSSRule (element: ComponentType , rule: CSSRule