import { UISchema } from '../types'; /** * Serialization options */ export interface SerializeOptions { /** Pretty print with indentation */ pretty?: boolean; /** Indentation spaces (default: 2) */ indent?: number; } /** * Deserialization result */ export interface DeserializeResult { /** Whether deserialization was successful */ success: boolean; /** The deserialized schema (if successful) */ schema?: UISchema; /** Error message (if failed) */ error?: string; /** Error position in the JSON string */ position?: number; } /** * Serialize a UISchema to a JSON string * * @param schema - The UISchema to serialize * @param options - Serialization options * @returns JSON string representation of the schema */ export declare function serialize(schema: UISchema, options?: SerializeOptions): string; /** * Deserialize a JSON string to a UISchema * * @param json - The JSON string to deserialize * @returns DeserializeResult with the schema or error information */ export declare function deserialize(json: string): DeserializeResult; /** * Check if two UISchemas are structurally equal * Used for round-trip consistency testing */ export declare function schemasEqual(a: UISchema, b: UISchema): boolean; //# sourceMappingURL=serialization.d.ts.map