import React, { ReactNode, DetailedHTMLProps, ComponentType, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react'; import { IRenderer } from 'fela'; import { PropertiesFallback } from 'csstype'; export interface CSSStyle extends PropertiesFallback { ':active'?: CSSStyle; ':any-link'?: CSSStyle; ':blank'?: CSSStyle; ':checked'?: CSSStyle; ':current'?: CSSStyle; ':default'?: CSSStyle; ':defined'?: CSSStyle; ':dir()'?: CSSStyle; ':disabled'?: CSSStyle; ':drop'?: CSSStyle; ':empty'?: CSSStyle; ':enabled'?: CSSStyle; ':first'?: CSSStyle; ':first-child'?: CSSStyle; ':first-of-type'?: CSSStyle; ':fullscreen'?: CSSStyle; ':future'?: CSSStyle; ':focus'?: CSSStyle; ':focus-visible'?: CSSStyle; ':focus-within'?: CSSStyle; ':has()'?: CSSStyle; ':host'?: CSSStyle; ':host()'?: CSSStyle; ':host-context()'?: CSSStyle; ':hover'?: CSSStyle; ':indeterminate'?: CSSStyle; ':in-range'?: CSSStyle; ':invalid'?: CSSStyle; ':is()'?: CSSStyle; ':lang()'?: CSSStyle; ':last-child'?: CSSStyle; ':last-of-type'?: CSSStyle; ':left'?: CSSStyle; ':link'?: CSSStyle; ':local-link'?: CSSStyle; ':not()'?: CSSStyle; ':nth-child()'?: CSSStyle; ':nth-col()'?: CSSStyle; ':nth-last-child()'?: CSSStyle; ':nth-last-col()'?: CSSStyle; ':nth-last-of-type()'?: CSSStyle; ':nth-of-type()'?: CSSStyle; ':only-child'?: CSSStyle; ':only-of-type'?: CSSStyle; ':optional'?: CSSStyle; ':out-of-range'?: CSSStyle; ':past'?: CSSStyle; ':placeholder-shown'?: CSSStyle; ':read-only'?: CSSStyle; ':read-write'?: CSSStyle; ':required'?: CSSStyle; ':right'?: CSSStyle; ':root'?: CSSStyle; ':scope'?: CSSStyle; ':target'?: CSSStyle; ':target-within'?: CSSStyle; ':user-invalid'?: CSSStyle; ':valid'?: CSSStyle; ':visited'?: CSSStyle; ':where()'?: CSSStyle; '::after'?: CSSStyle; '::backdrop'?: CSSStyle; '::before'?: CSSStyle; '::cue'?: CSSStyle; '::first-letter'?: CSSStyle; '::first-line'?: CSSStyle; '::grammar-error'?: CSSStyle; '::marker'?: CSSStyle; '::part()'?: CSSStyle; '::placeholder'?: CSSStyle; '::selection'?: CSSStyle; '::slotted()'?: CSSStyle; '::spelling-error'?: CSSStyle; '+ *'?: CSSStyle; '~ *'?: CSSStyle; '> *'?: CSSStyle; '@media screen and (min-width: 768px)'?: CSSStyle; [selector: string]: number | string | CSSStyle | undefined | (string | number)[]; } export declare type CSSRenderer = IRenderer; export declare type CSSRule

= (props: P, renderer: CSSRenderer) => CSSStyle; export declare type CSSKeyframes

= (props: P, renderer: CSSRenderer) => Record; export interface StyleContextType { readonly renderer: CSSRenderer; } export declare const StyleContext: React.Context; export interface StyleRendererProviderProps { readonly renderer: CSSRenderer; readonly children?: ReactNode; } export declare function StyleProvider(props: StyleRendererProviderProps): JSX.Element; export declare function renderStylesToComponents(renderer: CSSRenderer): ReactNode; export declare function renderStylesToMarkup(renderer: CSSRenderer): string; export declare function cssRule

(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 = JSX.IntrinsicElements[E] extends DetailedHTMLProps ? T : never; export interface StyledProps

{ styleRules: CSSRule[]; styleProps: P & SP; } export declare function styled(element: E, rule: CSSRule, middleware?: () => MP): ForwardRefExoticComponent> & RefAttributes> & StylePropsFromProps>>; export declare function styled

(element: ComponentType

, rule: CSSRule, middleware?: () => MP): ForwardRefExoticComponent> & RefAttributes & StylePropsFromProps>>; //# sourceMappingURL=style.d.ts.map