import type { ParamSpec, ParamSpecMap, ParamValue } from '../types.js'; /** * Coerce one value against its `ParamSpec` — clamp numbers into [min, max], * round ints, validate enums against their options, and fall back to the * spec default for anything malformed. Never throws. * * @param spec - The parameter contract. * @param given - Untrusted input (config file, LLM-emitted JSON). * @returns A valid `ParamValue` satisfying the spec. */ export declare function resolveParam(spec: ParamSpec, given: unknown): ParamValue; /** Coerce a whole params object against a `ParamSpecMap` via {@link resolveParam} — one pass, never throws, unknown keys ignored. */ export declare function resolveParams(specs: ParamSpecMap, given?: Record): Record; //# sourceMappingURL=param-coercion.d.ts.map