/** @packageDocumentation * @module Inputs */ import * as React from "react"; import type { QuantityTypeArg } from "@itwin/core-frontend"; import type { CommonProps } from "@itwin/core-react"; /** Props for [[QuantityInput]] control * @beta */ export interface QuantityProps extends CommonProps { /** Initial magnitude in 'persistence' units. See `getPersistenceUnitByQuantityType` in [QuantityFormatter]($core-frontend) */ initialValue: number; /** Type of quantity being input. */ quantityType: QuantityTypeArg; /** Function to call in the quantity value is changed. The value returned will be in 'persistence' units. */ onQuantityChange: (newQuantityValue: number) => void; /** Set to `true` if value is for display only */ readonly?: boolean; /** Provides ability to return reference to HTMLInputElement */ ref?: React.Ref; } /** Input control that allows users to input a quantity and show the formatted string that represents the value. * @beta */ export declare function QuantityInput({ initialValue, quantityType, readonly, className, style, onQuantityChange, ref, }: QuantityProps): React.JSX.Element; //# sourceMappingURL=QuantityInput.d.ts.map