import React, { type ComponentProps, type ComponentPropsWithRef, type ElementType, type ReactElement } from "react"; import { type SpacingKey } from "../../../system/Sizes"; import { Box } from "../Box/Box"; export { Props as StackProps }; type PolymorphicRef = ComponentPropsWithRef["ref"]; type Props = React.ComponentPropsWithoutRef & { as?: C; /** * Size of the gutter between items. */ _gap?: SpacingKey; /** * Positioning of items along the Stack’s cross axis. * The values are based on Tailwind's classnames and are therefore limited to the following: */ align?: "start" | "end" | "center" | "baseline" | "stretch" | "normal"; /** * Positioning of items along the Stack’s main axis. * The values are based on Tailwind's classnames and are therefore limited to the following: */ justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch"; /** * Positioning of items along the Stack’s x (horizontal) or y (vertical) axis */ axis?: "x" | "y"; /** * Reverse the order of the items */ reverse?: boolean; /** * Wrap content over multiple lines */ wrap?: boolean; children?: React.ReactNode; className?: string; /** * When provided, this divider is rendered between each item in the stack. */ divider?: React.ReactNode; }; type PropsWithRef = Props & { ref?: PolymorphicRef; }; export declare const Stack: (props: PropsWithRef & ComponentProps) => ReactElement | null;