import type { CSSObject } from '@theme-ui/css'; import type { Theme } from '../theme'; export declare type StyleThemeFunction = (theme: T) => CSSObject[] | CSSObject; export declare type ComponentStylesFn = (props: P) => CSSObject[] | CSSObject | StyleThemeFunction; export declare type ComponentStyles

= P extends undefined ? CSSObject[] | CSSObject | StyleThemeFunction : ComponentStylesFn;