/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. * * Whether the host the Plan renders in bounds it (#1193). A Plan fills its * parent, as every builder's frame does: given a height by its host, the * frame takes it, and the canvas fills main and scrolls its own rows. In a * host that gives it none — a page that grows with what it holds — the frame * grows with its canvas, which keeps growing with its rows and mounts what * the page shows of them (#812). * * @packageDocumentation */ import { type RefObject } from "react"; /** * Whether the host bounds the canvas: read from the canvas as laid out, * before it paints, and again whenever it or the main it sits in changes * size. A canvas growing with its rows that is taller than its main is cut * off by a host that bounds the frame. Once bounded, it stays bounded: a * canvas that fills main is never taller than it, so nothing could say * otherwise. A declared bound (`style.height` / `maxHeight`) is the Plan's * own, and asks nothing of the host. * * @param bodyRef - The canvas's body, the child of the frame's main * @param declared - Whether the Plan declares a bound * @returns `true` once the host is seen to bound the canvas */ export declare function useHostBound(bodyRef: RefObject, declared: boolean): boolean; //# sourceMappingURL=host-bound.d.ts.map