/** @jsxImportSource react */ import { Field, FieldInstance, FieldConfig } from "./Field"; import type { RenderingContext } from "../../ui/RenderingContext"; import type { Instance } from "../../ui/Instance"; import { NumberProp, StringProp, BooleanProp } from "../../ui/Prop"; export interface NumberFieldConfig extends FieldConfig { value?: NumberProp; readOnly?: BooleanProp; enabled?: BooleanProp; placeholder?: StringProp; format?: StringProp; minValue?: NumberProp; minExclusive?: BooleanProp; maxValue?: NumberProp; maxExclusive?: BooleanProp; constrain?: BooleanProp; incrementPercentage?: NumberProp; increment?: NumberProp; step?: number; baseClass?: string; snapToIncrement?: boolean; showClear?: boolean; hideClear?: boolean; alwaysShowClear?: boolean; reactOn?: string; inputType?: "text" | "password"; maxValueErrorText?: string; maxExclusiveErrorText?: string; minValueErrorText?: string; minExclusiveErrorText?: string; inputErrorText?: string; scale?: number; offset?: number; /** Custom validation function. */ onValidate?: string | ((value: number, instance: Instance, validationParams: Record) => unknown); /** If `trackFocus` is set, this value will be set when the field receives or loses focus. */ focused?: BooleanProp; } export declare class NumberField extends Field { baseClass: string; reactOn: string; format: string; inputType: string; incrementPercentage: number; increment?: number; scale: number; offset: number; step?: number; hideClear?: boolean; showClear?: boolean; alwaysShowClear?: boolean; snapToIncrement?: boolean; onParseInput?: string | ((value: string, instance: Instance) => number | undefined); minValueErrorText: string; maxValueErrorText: string; minExclusiveErrorText: string; maxExclusiveErrorText: string; inputErrorText?: string; declareData(...args: Record[]): void; init(): void; prepareData(context: RenderingContext, instance: FieldInstance): void; formatValue(context: RenderingContext, { data }: FieldInstance): string | number | undefined; parseValue(value: string, instance: FieldInstance): number; validate(context: RenderingContext, instance: FieldInstance): void; renderInput(context: RenderingContext, instance: FieldInstance, key: string): React.ReactNode; validateRequired(context: RenderingContext, instance: FieldInstance): string | undefined; } //# sourceMappingURL=NumberField.d.ts.map