/**
 * MK2 Rect Clamp Helper
 * Ensures rects fit within safe bounds, accounting for borders
 * FIXED: Never sets w=0 h=0, always enforces minimums
 */
import type { LayoutRect } from './computeLayout.js';
/**
 * Clamp a rect to fit within safe bounds
 * Enforces: x >= 0, y >= 0, rightEdge <= maxX, bottomEdge <= maxY
 * FIXED: Never sets w=0 h=0 - always enforces minimums
 */
export declare function clampRect(rect: LayoutRect, safeW: number, safeH: number, topGuard?: number, maxX?: number, // Optional: maximum allowed X position (from geometry)
maxY?: number, // Optional: maximum allowed Y position (from geometry)
isCommand?: boolean): LayoutRect;
//# sourceMappingURL=clampRect.d.ts.map