type AreaSymbol = typeof areaSymbols[number]; /** * Type predicate. * @param candidate The candidate to test. */ declare function isAreaSymbol(candidate: any): candidate is AreaSymbol; /** * All the Area symbols. */ declare const areaSymbols: readonly ["Mm²", "km²", "m²", "cm²", "mm²", "µm²", "nm²", "in²", "ft²", "yd²", "mi²", "ac", "a", "ha"]; /** * 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 Area = Measurement; declare const area: Dimension<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareMegameters: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareKilometers: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareMeters: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareCentimeters: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareMillimeters: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareMicrometers: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareNanometers: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareInches: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareFeet: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareYards: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const squareMiles: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const acres: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const ares: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; declare const hectares: (value: number) => Measurement<"Mm²" | "km²" | "m²" | "cm²" | "mm²" | "µm²" | "nm²" | "in²" | "ft²" | "yd²" | "mi²" | "ac" | "a" | "ha">; export { acres, area, areaSymbols, ares, hectares, isAreaSymbol, squareCentimeters, squareFeet, squareInches, squareKilometers, squareMegameters, squareMeters, squareMicrometers, squareMiles, squareMillimeters, squareNanometers, squareYards }; export type { Area, AreaSymbol };