import type { UnitCategory, UnitDef, UnitInput, UnitResult } from './types.js'; /** * Get all available unit categories * * @returns Array of category names */ export declare function getUnitCategories(): UnitCategory[]; /** * Get unit definitions for a specific category * * @param category - Unit category * @returns Array of unit definitions */ export declare function getUnitsForCategory(category: UnitCategory): UnitDef[]; /** * Calculate unit conversion * * Converts a value from one unit to another within the same category, * and provides conversions to all units in that category. * * @param input - Unit conversion input * @returns Conversion result with target value and all conversions * @throws RangeError if the category is unknown, or if fromUnit or toUnit * is not a supported unit in the category */ export declare function calculateUnit(input: UnitInput): UnitResult; //# sourceMappingURL=unit.d.ts.map