type ElectricPotentialDifferenceSymbol = typeof electricPotentialDifferenceSymbols[number]; /** * Type predicate. * @param candidate The candidate to test. */ declare function isElectricPotentialDifferenceSymbol(candidate: any): candidate is ElectricPotentialDifferenceSymbol; /** * All the Electric Potential Difference symbols. */ declare const electricPotentialDifferenceSymbols: readonly ["MV", "kV", "V", "mV", "µV"]; /** * 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 ElectricPotentialDifference = Measurement; declare const electricPotentialDifference: Dimension<"MV" | "kV" | "V" | "mV" | "µV">; declare const megavolts: (value: number) => Measurement<"MV" | "kV" | "V" | "mV" | "µV">; declare const kilovolts: (value: number) => Measurement<"MV" | "kV" | "V" | "mV" | "µV">; declare const volts: (value: number) => Measurement<"MV" | "kV" | "V" | "mV" | "µV">; declare const millivolts: (value: number) => Measurement<"MV" | "kV" | "V" | "mV" | "µV">; declare const microvolts: (value: number) => Measurement<"MV" | "kV" | "V" | "mV" | "µV">; export { electricPotentialDifference, electricPotentialDifferenceSymbols, isElectricPotentialDifferenceSymbol, kilovolts, megavolts, microvolts, millivolts, volts }; export type { ElectricPotentialDifference, ElectricPotentialDifferenceSymbol };