import { BaseComponent, ElementComponent } from "../../core/compose/index.js"; /** Configuration options for divider components Controls the appearance, orientation, and behavior of Material Design 3 dividers. */ interface DividerConfig { /** CSS class prefix (defaults to 'mtrl') */ prefix?: string; /** CSS class to add to the divider Additional classes for custom styling needs. */ class?: string | string[]; /** * Orientation of the divider * @default 'horizontal' */ orientation?: 'horizontal' | 'vertical'; /** * Variant of the divider Controls how the divider is inset within its container: - 'full-width': Spans the entire width/height (default) - 'inset': Adds space at the start (left for horizontal, top for vertical) - 'middle-inset': Adds space at both start and end Most commonly used in lists to align dividers with text content. * @default 'full-width' */ variant?: 'full-width' | 'inset' | 'middle-inset'; /** * Custom inset value (left margin for horizontal, top margin for vertical) Overrides the default inset spacing at the start of the divider. * @default 16 for 'inset' and 'middle-inset' variants, 0 for full-width */ insetStart?: number; /** * Custom inset end value (right margin for horizontal, bottom margin for vertical) Overrides the default inset spacing at the end of the divider. * @default 0 for 'inset' and full-width, 16 for 'middle-inset' */ insetEnd?: number; /** Color of the divider Sets a custom color for the divider. */ color?: string; /** * Thickness of the divider in pixels Controls the thickness (height for horizontal, width for vertical) of the divider. * @default 1 */ thickness?: number; /** Used internally for component composition */ componentName?: string; } declare const defaultConfig: Partial; declare const createBaseConfig: (config?: DividerConfig) => DividerConfig; /** * Creates a new Divider component with the specified configuration. * @param config */ declare const createDivider: (config?: DividerConfig) => DividerComponent; /** The three slices of a divider, one per enhancer in features.ts. */ interface DividerOrientation { /** Gets current orientation of the divider */ getOrientation(): 'horizontal' | 'vertical'; /** * Sets orientation of the divider Changes the divider's orientation between horizontal (default) and vertical. * @param orientation */ setOrientation(orientation: 'horizontal' | 'vertical'): this; } /** The inset slice. */ interface DividerInset { /** Gets current variant of the divider */ getVariant(): 'full-width' | 'inset' | 'middle-inset'; /** * Sets variant of the divider * @param variant */ setVariant(variant: 'full-width' | 'inset' | 'middle-inset'): this; /** * Sets custom inset values for the divider Allows fine-grained control over inset spacing, overriding the default values applied by the variant. * @param insetStart * @param insetEnd */ setInset(insetStart?: number, insetEnd?: number): this; } /** The style slice. */ interface DividerStyle { /** * Sets thickness of the divider Changes the divider's thickness (height for horizontal, width for vertical). * @param thickness */ setThickness(thickness: number): this; /** * Sets custom color for the divider By default, dividers use the 'outline-variant' color from the theme. * @param color */ setColor(color: string): this; } /** Divider component interface Represents a Material Design 3 divider that separates content into distinct sections. */ interface DividerComponent extends BaseComponent, ElementComponent, DividerOrientation, DividerInset, DividerStyle { } export type { DividerComponent, DividerConfig }; export { createDivider, createDivider as default };