/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * Whether a builder's footer rail wraps (the shared `builder-footer` rail): * its items do not fit on one line. The rail can be wider than main, and its * labels are translated, so it fits its actual items rather than assume a * breakpoint does. * * What it measures is the same whichever form the rail is in: the items' own * widths (they never shrink or wrap), the rail's unwrapped gap, which the * recipe keeps in `--builder-footer-gap` while the rail wraps at a narrower * one, and its inline padding and borders. Measured with the wrapped gap, a * rail between the two would fit once wrapped, unwrap, and no longer fit — * a render loop. An item a host lets wrap its own words once the rail wraps — * the Schematic's density, on a phone — shrinks only when it alone is wider * than the rail, and then fills it: so a wrapped rail stays wrapped while its * items fill it, and unwraps only once they fit with a pixel to spare, or one * item filling the rail would unwrap it, overflow and wrap it again. * * @packageDocumentation */ import { type RefObject } from "react"; /** * Whether the rail's items need more than one line (see the module docs). * * @param ref - The rail * @param items - What its items are: measured again when it changes * @returns Whether it wraps */ export declare function useRailWrap(ref: RefObject, items: unknown): boolean; //# sourceMappingURL=footer.d.ts.map