/** * @file src/validation.ts * @description Model validation and cleanup utilities * * Provides pre-solve validation functions that ensure models are properly * formatted before solving. All exported functions accept a model and return * a valid model (or throw an error if validation fails). */ import type { Model as ModelDefinition } from "./types/solver"; /** * Checks for common typos in model properties and logs warnings. * * This helps users identify issues like using 'optype' instead of 'opType' * which would cause the solver to silently use default behavior. */ export declare function WarnOnTypos(model: ModelDefinition): ModelDefinition; /** * Renames objective attributes that conflict with constraint names. * * If the optimize attribute is also used as a constraint name, this function * creates a new random attribute name to avoid the collision. */ export declare function CleanObjectiveAttributes(model: ModelDefinition): ModelDefinition;