/** * Type for JSON validation options */ interface ValidationOptions { allowPartial?: boolean; } /** * Interface for a schema validator */ export interface SchemaValidator { /** * Validates data against a schema * @param data The data to validate * @returns Validated and typed data */ validate(data: unknown): T; } /** * Validates JSON string using the provided schema validator * * @param jsonStr The JSON string to validate * @param validator The schema validator to use * @param options Validation options * @returns The validated object * @throws ModelBehaviorError if the JSON is invalid */ export declare function validateJson(jsonStr: string, validator: SchemaValidator, options?: ValidationOptions): T; export {};