import type { Styles } from '@cleartrip/ct-design-types'; export type DividerOrientation = 'horizontal' | 'vertical'; export type DividerLineStyle = 'solid' | 'dashed' | 'dotted'; export interface IDividerStyleConfig { /** Styles for the root divider container. */ root?: Styles[]; } export interface IDividerProps { /** Orientation of the divider line. Defaults to `'horizontal'`. */ orientation?: DividerOrientation; /** Color of the divider line. Defaults to `theme.color.border.divider`. */ dividerColor?: string; /** Line style of the divider. Defaults to `'solid'`. */ dividerType?: DividerLineStyle; /** * Thickness of the divider line in pixels. Defaults to `1`. * For `horizontal`, maps to `borderBottomWidth`; for `vertical`, to * `borderRightWidth`. */ dividerWidth?: number; /** * Length of the divider. Defaults to `'100%'`. * For `horizontal`, maps to `width`; for `vertical`, to `height`. */ dividerLength?: number; /** Style configuration for the divider container. */ styleConfig?: IDividerStyleConfig; } /** * @deprecated Use `IDividerProps`. Kept as an alias for legacy consumers * that imported `DividerProps` from `@cleartrip/ct-design-divider`. */ export type DividerProps = IDividerProps;