type DispersionSymbol = typeof dispersionSymbols[number]; /** * Type predicate. * @param candidate The candidate to test. */ declare function isDispersionSymbol(candidate: any): candidate is DispersionSymbol; /** * All the Dispersion symbols. */ declare const dispersionSymbols: readonly ["ppm", "ppb", "ppt"]; /** * 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 Dispersion = Measurement; declare const dispersion: Dimension<"ppm" | "ppb" | "ppt">; declare const partsPerMillion: (value: number) => Measurement<"ppm" | "ppb" | "ppt">; declare const partsPerBillion: (value: number) => Measurement<"ppm" | "ppb" | "ppt">; declare const partsPerTrillion: (value: number) => Measurement<"ppm" | "ppb" | "ppt">; export { dispersion, dispersionSymbols, isDispersionSymbol, partsPerBillion, partsPerMillion, partsPerTrillion }; export type { Dispersion, DispersionSymbol };