export type LayoutBreakpoint = 'base' | 'sm' | 'md' | 'lg'; export type ResponsiveLayout = T | Partial>; export type LayoutTracks = number | number[]; export type LayoutGap = 'none' | 'sm' | 'md' | 'lg'; interface LayoutPlacement { span?: ResponsiveLayout; css?: string; } export type FormLayoutNode = (LayoutPlacement & { type: 'field'; field: string; }) | (LayoutPlacement & { type: 'stack'; gap?: LayoutGap; children: FormLayoutNode[]; }) | (LayoutPlacement & { type: 'grid'; columns: ResponsiveLayout; align?: 'independent' | 'rows'; gap?: LayoutGap; children: FormLayoutNode[]; }) | (LayoutPlacement & { type: 'section'; label: string; description?: string; gap?: LayoutGap; children: FormLayoutNode[]; }); export interface FormLayoutIssue { path: (string | number)[]; code: 'invalid_node' | 'unknown_field' | 'duplicate_field'; } export declare const layoutLimits: { readonly depth: 64; readonly nodes: 1024; readonly children: 128; readonly css: 65536; readonly label: 256; readonly description: 4096; readonly field: 256; }; export declare const layoutBreakpoints: readonly ['base', 'sm', 'md', 'lg']; export declare function responsiveLayoutValues(value: ResponsiveLayout | undefined, fallback: T): Record; /** Invalid layouts fall back as a whole, so a typo cannot hide an input or render it twice. */ export declare function resolveFormLayout(value: unknown, fieldNames: readonly string[]): { layout: FormLayoutNode | undefined; remaining: string[]; issues: FormLayoutIssue[]; }; export {};