import { Coordinate } from './coordinate.js'; import { Equatable } from './equality.js'; /** * Combination of position and size. */ export declare class Layout implements Equatable { #private; readonly top: number; readonly left: number; readonly right: number; readonly bottom: number; readonly width: number; readonly height: number; /** * Return the current layout of a DOM element. */ static fromElement(element: HTMLElement): Layout; /** * Return the layout constructed from midpoint and size. */ static fromMidpoint(config: { midpoint: Coordinate; width: number; height: number; }): Layout; /** * Return the layout constructed from top-left coordinate and size. */ static fromTopLeft(config: { topLeft: Coordinate; width: number; height: number; }): Layout; /** * Return the layout constructed from four edges. * @param config * @returns */ static fromEdges(config: { top: number; left: number; right: number; bottom: number; }): Layout; private constructor(); get midpoint(): Coordinate; equals(other: this): boolean; } //# sourceMappingURL=layout.d.ts.map