import type { UILayer } from "../../layers/UILayer/UILayer"; import { UIOrientation } from "../../miscellaneous/UIOrientation"; import type { UIPriority } from "../../miscellaneous/UIPriority"; import type { UIRelation } from "../../miscellaneous/UIRelation"; import { UIConstraint } from "../UIConstraint"; import type { UISingleParameterConstraintOptions } from "./UISingleParameterConstraint.Internal"; /** Base class for constraints with priority, relation, and orientation */ export declare abstract class UISingleParameterConstraint extends UIConstraint { /** Constraint priority */ private priorityInternal; /** Constraint relation */ private relationInternal; /** Constraint orientation */ private orientationInternal; /** Solver constraint descriptor */ protected abstract readonly constraint: number; /** * @param layer Layer containing this constraint * @param options Constraint configuration */ constructor(layer: UILayer, options?: Partial); /** Constraint priority */ get priority(): UIPriority; /** Constraint relation */ get relation(): UIRelation; /** When constraint is active */ get orientation(): UIOrientation; /** Updates constraint priority */ set priority(value: UIPriority); /** Updates constraint relation */ set relation(value: UIRelation); /** Updates when constraint is active */ set orientation(value: UIOrientation); /** Removes constraint from solver and cleans up listeners */ destroy(): void; /** * Checks if constraint should be active for current orientation. * @returns True if orientation is ALWAYS or matches layer orientation */ protected isConstraintEnabled(): boolean; /** Updates constraint enabled state when layer orientation changes */ private readonly onOrientationChange; }