import { type CSSProperties, type ReactNode } from "react"; import { type ThemeKeys } from "../../theme"; export type BoxProps = { as?: "div" | "nav" | "article" | "header" | "span"; children?: ReactNode; position?: "absolute" | "relative" | "sticky" | "fixed"; top?: number | string; left?: number | string; right?: number | string; bottom?: number | string; width?: number | string; minWidth?: number | string; maxWidth?: number | string; height?: number | string; minHeight?: number | string; maxHeight?: number | string; flexBasis?: 0; flexGrow?: 1; flexShrink?: 0; flexWrap?: "wrap"; animation?: Animation; transition?: Transition; padding?: Padding; margin?: Margin; border?: Border; borderColor?: ThemeKeys<"color">; borderRadius?: BorderRadius; borderStyle?: ThemeKeys<"borderStyle">; backgroundColor?: ThemeKeys<"color">; opacity?: ThemeKeys<"opacity">; visibility?: "hidden" | "visible"; overflowY?: "auto" | "hidden"; overflow?: "hidden"; gridColumn?: string; gridRow?: string; transform?: CSSProperties["transform"]; } & DisplayProps; type DisplayProps = { gap?: ThemeKeys<"space">; alignItems?: "flex-start" | "center" | "flex-end"; justifyContent?: "center" | "space-between" | "end"; } & (BoxBlockDisplayProps | BoxGridDisplayProps | BoxFlexDisplayProps | BoxNoneDisplayProps); type BoxBlockDisplayProps = { display: "block"; flexDirection?: never; gridTemplateColumns?: never; gridTemplateRows?: never; }; type BoxGridDisplayProps = { display: "grid"; gridTemplateColumns?: string; gridTemplateRows?: string; flexDirection?: never; }; export type BoxFlexDisplayProps = { display?: "flex" | "inline-flex"; flexDirection?: "column" | "row"; gridTemplateColumns?: never; gridTemplateRows?: never; }; type BoxNoneDisplayProps = { display: "none"; flexDirection?: never; gridTemplateColumns?: never; gridTemplateRows?: never; }; type Animation = { name?: "fadeIn"; duration?: ThemeKeys<"transitionDuration">; }; type Transition = { property: "opacity" | "background-color" | "height"; duration?: ThemeKeys<"transitionDuration">; delay?: string; }; type Padding = ThemeKeys<"space"> | { block?: ThemeKeys<"space">; inline?: ThemeKeys<"space">; top?: ThemeKeys<"space">; bottom?: ThemeKeys<"space">; left?: ThemeKeys<"space">; right?: ThemeKeys<"space">; }; type MarginValue = ThemeKeys<"space"> | `-${Exclude, "auto" | "fieldSetGap">}`; type Margin = MarginValue | { block?: MarginValue; inline?: MarginValue; top?: MarginValue; bottom?: MarginValue; left?: MarginValue; right?: MarginValue; }; type BorderRadius = ThemeKeys<"borderRadius"> | { topLeft?: ThemeKeys<"borderRadius">; topRight?: ThemeKeys<"borderRadius">; bottomLeft?: ThemeKeys<"borderRadius">; bottomRight?: ThemeKeys<"borderRadius">; }; type Border = boolean | { top?: boolean; bottom?: boolean; left?: boolean; right?: boolean; }; export declare const Box: (props: BoxProps & import("react").RefAttributes) => import("react").ReactElement> | null; export {};