import type { UILayerElement, UIPlaneElement } from "../../miscellaneous/shared"; import { UISingleParameterConstraint } from "../UISingleParameterConstraint/UISingleParameterConstraint"; import type { UIAspectConstraintOptions } from "./UIAspectConstraint.Internal"; /** Maintains element aspect ratio (width = height * aspect) */ export declare class UIAspectConstraint extends UISingleParameterConstraint { readonly element: UIPlaneElement & UILayerElement; /** Solver constraint descriptor */ protected readonly constraint: number; /** Current aspect ratio */ private aspectInternal; /** * @param element Element to constrain * @param options Aspect configuration. Defaults to element's current ratio. */ constructor(element: UIPlaneElement & UILayerElement, options?: Partial); /** Current aspect ratio (width/height) */ get aspect(): number; /** Updates aspect ratio */ set aspect(value: number); /** Builds constraint expression: width - (height * aspect) = 0 */ private buildLHS; }