export declare type LengthUnit = "mm" | "cm" | "dm" | "m" | "in" | "ft"; export declare type LengthValue = { length: number; unit: LengthUnit; }; export declare const isEqualLength: (l: LengthValue, r: LengthValue) => boolean; /** * Converts string to LengthUnit. * @throws an error if the supplied string isn't a known length unit */ export declare function toLengthUnit(unit: string): LengthUnit; /** * As we accept inch as an alias for in we can't make this a typeguard */ export declare function isLengthUnit(unit: string): boolean; export declare function convertLength(l: number, from: LengthUnit, to: LengthUnit): number; //# sourceMappingURL=utilitiesUnits.d.ts.map