import type { OrientedBoxGeometry, Rect } from "#types/detections"; /** Center x/y, positive local width/height, and clockwise radians in media coordinates. */ export type OrientedRectangleGeometry = Rect & { readonly rotation: number; }; /** Creates clockwise local top-left, top-right, bottom-right, bottom-left corners * from a center-based rectangle and clockwise radians, without sorting axes. */ export declare function createOrientedBoxGeometry(rect: Rect, rotation?: number): OrientedBoxGeometry; /** Recovers ordered rectangle axes, allowing corner coordinates rounded to 0.1 media pixels. * The least-squares rectangle preserves the supplied local axes; vertices are never reordered. * Returns null for non-clockwise, degenerate, or more substantially distorted quadrilaterals. */ export declare function getOrientedRectangleGeometry(box: OrientedBoxGeometry): OrientedRectangleGeometry | null; //# sourceMappingURL=oriented-rectangle.d.ts.map