/**
 * MK2 Phase 1B: Hard Invariant Checks
 *
 * Crash early if layout math is wrong - don't hack around it.
 */
export interface Box {
    x: number;
    y: number;
    w: number;
    h: number;
}
/**
 * Assert that a box fits within safe canvas bounds
 * Rule: x + w <= safeW (ensures maxX = x + w - 1 <= safeW - 1)
 */
export declare function assertBoxFits(box: Box, safeW: number, safeH: number, topGuard?: number): void;
/**
 * Clamp a value between min and max
 */
export declare function clamp(value: number, min: number, max: number): number;
//# sourceMappingURL=invariants.d.ts.map