import type { OverlayPoint } from './OverlayPoint'; /** * Represents a two adjacent overlay points. The first point is the point * that is closer to the start of the document, and the second point is the * point that is closer to the end of the document. When an absolute start is * missing, the `p1` will be `undefined`. When an absolute end is missing, the * `p2` will be `undefined`. */ export type OverlayPair = [p1: OverlayPoint | undefined, p2: OverlayPoint | undefined]; /** * The *overlay tuple* is similar to the {@link OverlayPair}, but ensures that * both points are defined. The leasing and trailing `undefined` are substituted * by virtual points. */ export type OverlayTuple = [p1: OverlayPoint, p2: OverlayPoint];