import { UISchema, ValidationResult } from '../types'; /** * JSON validation result with detailed error information */ export interface JSONValidationResult { /** Whether the JSON is valid */ valid: boolean; /** Parsed value if valid */ value?: unknown; /** Error details if invalid */ error?: JSONValidationError; } /** * Detailed JSON validation error */ export interface JSONValidationError { /** Error message */ message: string; /** Character position in the input string (0-based) */ position?: number; /** Line number (1-based) */ line?: number; /** Column number (1-based) */ column?: number; } /** * Validate JSON syntax * * @param input - The JSON string to validate * @returns JSONValidationResult with parsed value or detailed error */ export declare function validateJSON(input: string): JSONValidationResult; /** * UI Schema validation result */ export interface UISchemaValidationResult extends ValidationResult { /** The validated schema if valid */ schema?: UISchema; } /** * Validate UI Schema structure * * Validates that a parsed object conforms to the UISchema structure: * - Required fields (version, root) * - Component structure (id, type required for each component) * - Component reference integrity (all children are valid components) * * @param input - The object to validate (typically from JSON.parse) * @returns UISchemaValidationResult with validation errors or validated schema */ export declare function validateUISchema(input: unknown): UISchemaValidationResult; //# sourceMappingURL=validation.d.ts.map