/** * Recursively walk a React element tree and force every descendant to * use `wrap="truncate"`, so the text can never overflow its parent's width * and break a wrapping frame (e.g. the per-row `│ … │` chrome of a Card or * SidebarPanelCard). * * Why this exists: Ink lays out a flex child at the size yoga gives it, but * a that doesn't set `wrap="truncate"` will soft-wrap into a multi- * line block when the visible content is wider than the parent. That extra * height "punches through" our per-row `│` wrapper — the right bar only sits * on the first line, so the wrapped overflow lines are bare and the frame * looks broken. * * The clean fix is to ensure EVERY in the body has `wrap="truncate"`. * Rather than asking every call site to remember that, we walk the rendered * tree once before it reaches the Card and rewrite the prop. Box children * pass through unchanged (their internal layout is the caller's concern, but * they usually contain a single Text row anyway). */ import type { ReactNode } from 'react'; export declare function truncateTextChildren(node: ReactNode): ReactNode; //# sourceMappingURL=react-wrap-truncate.d.ts.map