import { type ElementType } from 'react'; import { type ChildrenProps, type SpacingProp, type SpiritPolymorphicElementPropsWithoutRef, type StyleProps } from './shared'; export interface StackBaseProps extends ChildrenProps, SpacingProp, StyleProps { hasEndDivider?: boolean; hasIntermediateDividers?: boolean; hasSpacing?: boolean; hasStartDivider?: boolean; } export type StackProps = { elementType?: E; } & StackBaseProps; export type SpiritStackProps = StackProps & SpiritPolymorphicElementPropsWithoutRef>; export interface StackItemBaseProps extends ChildrenProps, StyleProps { } export type StackItemProps = { elementType?: E; } & StackItemBaseProps; export type SpiritStackItemProps = StackItemProps & SpiritPolymorphicElementPropsWithoutRef>;