import type { LayoutConstraints, ValidationIssue } from "../types.js"; /** * Context for layout validation. * * @beta */ export interface LayoutContext { /** The type of layout element ("group" | "conditional") */ layoutType: "group" | "conditional"; /** Optional label for the element (for groups) */ label?: string; /** Current nesting depth */ depth: number; /** Path to this element */ path?: string; } /** * Validates a layout element against constraints. * * @param context - Information about the layout element * @param constraints - Layout constraints * @returns Array of validation issues (empty if valid) * * @beta */ export declare function validateLayout(context: LayoutContext, constraints: LayoutConstraints): ValidationIssue[]; /** * Checks if a layout type is allowed by the constraints. * * @param layoutType - The type of layout element * @param constraints - Layout constraints * @returns true if allowed, false if disallowed * * @beta */ export declare function isLayoutTypeAllowed(layoutType: "group" | "conditional", constraints: LayoutConstraints): boolean; /** * Checks if a nesting depth is allowed. * * @param depth - Current nesting depth * @param constraints - Layout constraints * @returns true if allowed, false if exceeds limit * * @beta */ export declare function isNestingDepthAllowed(depth: number, constraints: LayoutConstraints): boolean; //# sourceMappingURL=layout.d.ts.map