type ConcentrationMassSymbol = typeof concentrationMassSymbols[number]; /** * Type predicate. * @param candidate The candidate to test. */ declare function isConcentrationMassSymbol(candidate: any): candidate is ConcentrationMassSymbol; /** * All the Concentration Mass symbols. */ declare const concentrationMassSymbols: readonly ["g/L", "mg/dL"]; /** * The object representation of a measurement. * * @template Unit The type of the unit of measurement. * @template Value The type of the value of the measurement. */ type Measurement$1 = Number & { readonly value: Value; readonly unit: Unit; }; /** * Represents a dimension measurement. * @template Units - The units of the dimension. */ type Measurement = Measurement$1 & Alternatives; /** * Represents a collection of alternative measurements for different units. * * @template Units - The string literal type representing the available units. */ type Alternatives = { readonly [unit in Units]: Measurement; }; /** * A dimension is a map of units to creation functions. * Each function takes a number value and returns a * dimension measurement. * @template Units - The units of the dimension. */ type Dimension = { readonly [unit in Units]: (value: number) => Measurement; }; type ConcentrationMass = Measurement; declare const concentrationMass: Dimension<"g/L" | "mg/dL">; declare const gramsPerLiter: (value: number) => Measurement<"g/L" | "mg/dL">; declare const milligramsPerDeciliter: (value: number) => Measurement<"g/L" | "mg/dL">; export { concentrationMass, concentrationMassSymbols, gramsPerLiter, isConcentrationMassSymbol, milligramsPerDeciliter }; export type { ConcentrationMass, ConcentrationMassSymbol };