import type { ElementType, ReactNode } from 'react'; import type { SxProp } from './sx.js'; /** Spacing scale token — maps 1:1 to `.p-{n}`, `.m-{n}`, `.gap-{n}` utilities. */ export type Space = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16; export type Align = 'start' | 'center' | 'end' | 'stretch' | 'baseline'; export type Justify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'; export type Direction = 'row' | 'column' | 'row-reverse' | 'column-reverse'; export type Display = 'block' | 'inline-block' | 'flex' | 'inline-flex' | 'grid' | 'inline-grid' | 'none'; export interface LayoutProps { /** Polymorphic render target. Defaults vary per component. */ as?: ElementType; p?: Space; px?: Space; py?: Space; pt?: Space; pr?: Space; pb?: Space; pl?: Space; m?: Space; mx?: Space; my?: Space; mt?: Space; mr?: Space; mb?: Space; ml?: Space; gap?: Space; gapX?: Space; gapY?: Space; display?: Display; direction?: Direction; align?: Align; justify?: Justify; wrap?: boolean; w?: 'full' | 'auto' | 'fit'; h?: 'full' | 'auto' | 'fit'; /** Grow to fill remaining space along the parent flex axis (`flex: 1 1 0`). */ grow?: boolean; /** * MUI-like escape hatch for one-off CSS. Each value may be a scalar or a * responsive map keyed by breakpoint (base/sm/md/lg/xl), e.g. * `sx={{ p: 8, gridTemplateColumns: { base: '1fr', lg: '3fr 1fr' } }}`. * Scalar-only sx becomes inline style; responsive sx injects a scoped class. */ sx?: SxProp; children?: ReactNode; } /** Maps layout props to the utility class names emitted by core. */ export declare function layoutClasses(p: LayoutProps): (string | false | null | undefined)[];