import type { ElementType, ForwardedRef, ReactElement } from 'react'; import type { BoxProps } from './Box.js'; import type { Breakpoint } from './sx.js'; type GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; /** Column weights, e.g. `[3, 1]` → `minmax(0,3fr) minmax(0,1fr)`. */ type Ratio = number[]; /** A ratio, or a per-breakpoint map for responsive tracks (e.g. `{ base: [1], lg: [3, 1] }`). */ type ResponsiveRatio = Ratio | Partial>; export type GridProps = Omit, 'display' | 'direction'> & { /** Fixed column count. Maps to `.grid-cols-{n}` utility. Ignored if another track prop is set. */ cols?: GridCols; /** * Auto-fit responsive grid: `repeat(auto-fit, minmax(minColWidth, 1fr))`. * Pass a CSS length (e.g. `'240px'`, `'18rem'`). */ minColWidth?: string; /** * Asymmetric tracks via column weights. `[3, 1]` → a 75/25 split. Responsive * with a breakpoint map: `ratio={{ base: [1], lg: [3, 1] }}` stacks below `lg` * and splits 3:1 at/above it — no custom CSS needed. */ ratio?: ResponsiveRatio; /** Explicit `grid-template-columns` string (e.g. `'200px 1fr auto'`). */ template?: string; }; /** * CSS Grid container. Choose one track model: `cols` (equal), `minColWidth` * (auto-fit), `ratio` (asymmetric, responsive), or `template` (explicit). */ export declare const Grid: (props: GridProps & { ref?: ForwardedRef; }) => ReactElement; export {};