import type { UIPlaneElement, UIPointElement } from "../../miscellaneous/shared"; import { UISingleParameterConstraint } from "../UISingleParameterConstraint/UISingleParameterConstraint"; import type { UIHorizontalDistanceConstraintOptions } from "./UIHorizontalDistanceConstraint.Internal"; /** Maintains horizontal distance between elements with configurable anchors */ export declare class UIHorizontalDistanceConstraint extends UISingleParameterConstraint { readonly a: UIPointElement | UIPlaneElement; readonly b: UIPointElement | UIPlaneElement; /** Solver constraint descriptor */ protected readonly constraint: number; /** Anchor on element A */ private anchorAInternal; /** Anchor on element B */ private anchorBInternal; /** Current distance */ private distanceInternal; /** * @param a First element * @param b Second element * @param options Distance configuration */ constructor(a: UIPointElement | UIPlaneElement, b: UIPointElement | UIPlaneElement, options?: Partial); /** Current distance in world units */ get distance(): number; /** Anchor on element A (0 = left, 0.5 = center, 1 = right) */ get anchorA(): number; /** Anchor on element B (0 = left, 0.5 = center, 1 = right) */ get anchorB(): number; /** Updates distance */ set distance(value: number); /** Updates anchor on element A */ set anchorA(value: number); /** Updates anchor on element B */ set anchorB(value: number); /** Builds constraint expression for distance between anchored positions */ private buildLHS; }