import { TileryDivider as DividerType, TilerySizeResolutionContext } from 'tilery/internal'; /** * Props for the {@link TileryDivider} component. */ export type DividerProps = { /** The divider model object describing orientation and position. */ divider: DividerType; /** ARIA and positional data used to make the separator accessible. */ accessibility: DividerAccessibility; /** When true the handle is non-interactive and renders a default cursor. */ disabled?: boolean; /** * Width/height of the pointer-capture hit target in pixels. * @defaultValue 24 */ hitSize?: number; /** * Called when the divider is moved via pointer or keyboard. * Return `true` to indicate the position was applied. */ onDrag: (dividerId: string, newPositionPercent: number, input: 'keyboard' | 'pointer', sizeContext?: TilerySizeResolutionContext) => boolean | void; /** * Called when the divider is double-clicked to reset to its default * position. Return `true` to indicate the reset was applied. */ onReset?: (dividerId: string, sizeContext?: TilerySizeResolutionContext) => boolean | void; /** Called after a drag or keyboard interaction ends. */ onDragEnd?: () => void; /** Ref to the layout container used to compute percentage positions. */ containerRef: React.RefObject; }; /** * ARIA attribute values and boundary data required to make a divider * fully accessible as a `separator` role element. */ export type DividerAccessibility = { /** Human-readable label for the separator. */ label: string; /** Space-separated list of element IDs that this separator controls. */ controls: string; /** Minimum value for `aria-valuemin`. */ valueMin: number; /** Maximum value for `aria-valuemax`. */ valueMax: number; /** Current value for `aria-valuenow`. */ valueNow: number; /** Human-readable current value for `aria-valuetext`. */ valueText: string; /** Smallest percentage position the divider may occupy. */ minPosition: number; /** Largest percentage position the divider may occupy. */ maxPosition: number; /** Pixel coordinate of the axis start used for keyboard step calculations. */ axisStart: number; /** Pixel coordinate of the axis end used for keyboard step calculations. */ axisEnd: number; }; /** * Accessible drag handle that repositions a vertical or horizontal split * between two tiled panels. Supports pointer drag and keyboard arrow keys, * with double-click to reset to the default position. */ export declare const TileryDivider: import('react').MemoExoticComponent<({ divider, accessibility, disabled, hitSize, onDrag, onReset, onDragEnd, containerRef, }: DividerProps) => import("react").JSX.Element>; //# sourceMappingURL=divider.d.ts.map