type PressureSymbol = typeof pressureSymbols[number]; /** * Type predicate. * @param candidate The candidate to test. */ declare function isPressureSymbol(candidate: any): candidate is PressureSymbol; /** * All the Pressure symbols. */ declare const pressureSymbols: readonly ["N/m²", "GPa", "MPa", "kPa", "hPa", "inHg", "bar", "mbar", "mmHg", "psi"]; /** * 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 Pressure = Measurement; declare const pressure: Dimension<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const newtonsPerMetersSquared: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const gigapascals: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const megapascals: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const kilopascals: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const hectopascals: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const inchesOfMercury: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const bars: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const millibars: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const millimetersOfMercury: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; declare const poundsForcePerSquareInch: (value: number) => Measurement<"N/m²" | "GPa" | "MPa" | "kPa" | "hPa" | "inHg" | "bar" | "mbar" | "mmHg" | "psi">; export { bars, gigapascals, hectopascals, inchesOfMercury, isPressureSymbol, kilopascals, megapascals, millibars, millimetersOfMercury, newtonsPerMetersSquared, poundsForcePerSquareInch, pressure, pressureSymbols }; export type { Pressure, PressureSymbol };