export interface SerializedStyles { name: string; styles: string; map?: string; next?: SerializedStyles; } export type PolymorphicClassName = string | SerializedStyles | readonly any[]; export type CSSProperties = { [key: string]: string | number | CSSProperties; }; export type CSS = (strings: TemplateStringsArray, ...exprs: Array) => PolymorphicClassName; export type HTMLAttributesWithoutOnChange = Omit, 'onChange'>; export type HTMLAttributesWithoutOnChangeAndDefaultValue = Omit, 'onChange' | 'defaultValue'>; export type HTMLAttributesWithoutDraggable = Omit, 'onDragStart' | 'onDragEnter' | 'onDragOver' | 'onDragLeave' | 'onDragEnd' | 'onDrop'>; export type InputHTMLAttributesWithoutDraggable = Omit, 'onDragStart' | 'onDragEnter' | 'onDragOver' | 'onDragLeave' | 'onDragEnd' | 'onDrop' | V>; export type RootProps | HTMLAttributesWithoutOnChange> = React.FunctionComponent<{ children?: React.ReactNode; } & Element & React.RefAttributes>; export type RootPropsOmitOnChange> = React.FunctionComponent<{ children?: React.ReactNode; } & React.RefAttributes & Element>; export type RootPropsOmitOnChangeAndDefaultValue> = React.FunctionComponent<{ children?: React.ReactNode; } & React.RefAttributes & Element>; export type RootPropsOmitDraggable> = React.FunctionComponent<{ children?: React.ReactNode; } & React.RefAttributes & Element>; export type Variant = { css?: PolymorphicClassName; attrs?: boolean; true?: PolymorphicClassName; } & Record; export type HTMLAnyAttributes = Record; export type HTMLTagList = string | React.ElementType; export type Variants = Record; export type PropsType = { [L in keyof J]?: keyof J[L] extends 'true' ? boolean : keyof J[L]; }; export type Filter = { [k in keyof T]: k extends U ? unknown : T[k]; }; export interface Intersection { style: PolymorphicClassName; } export interface ComponentConfig = {}, LayoutProps extends React.HTMLAttributes | Record | undefined = React.HTMLAttributes> { name: string; layout: (Root: React.FunctionComponent) => (props: LayoutProps | VariantsProps) => React.ReactElement | null; tag: Tag; base: PolymorphicClassName; variations: VariantList; defaults: Partial>; intersections?: Intersection[]; invariants?: PolymorphicClassName; } //# sourceMappingURL=types.d.ts.map