/** * Resolve per-request unit preferences from tool arguments. * * Precedence (highest first): * 1. per-call individual overrides (temperature_unit, wind_speed_unit, ...) * 2. per-call system preset (units: "imperial" | "metric") * 3. the server-wide default (from the environment) */ import { UnitPreferences } from '../config/units.js'; /** * Unit-related arguments accepted by weather tools. All optional; when a tool * omits a given knob from its schema, callers simply never set it. */ export interface UnitArgs { units?: string; temperature_unit?: string; wind_speed_unit?: string; precipitation_unit?: string; pressure_unit?: string; distance_unit?: string; time_format?: string; } /** * Resolve the effective unit preferences for a single tool invocation. * * @param args - The tool arguments (may contain units/*_unit/time_format) * @param base - Base preferences to build on (defaults to the env-configured default) * @returns Fully-resolved preferences * @throws Error if any provided unit value is unrecognized */ export declare function resolveUnitPreferences(args: UnitArgs | undefined | null, base?: UnitPreferences): UnitPreferences; //# sourceMappingURL=unitPreferences.d.ts.map