import type { InputHTMLAttributes } from 'react';
import React from 'react';
import type { RemInputStatus } from './RemInput';
type TextEditing = {
readonly format: (value: number | string) => string;
readonly parse: (text: string) => number | null;
readonly invalidMessage: string;
readonly onCancel: () => void;
};
type InputDraggerValidationResult = {
readonly valid: true;
readonly value: number;
} | {
readonly valid: false;
readonly message: string;
};
export declare const inputDraggerContainerStyle: React.CSSProperties;
export type InputDraggerExpressionResult = {
readonly status: 'valid';
readonly value: number;
} | {
readonly status: 'incomplete' | 'invalid';
};
export declare const parseInputDraggerExpression: (input: string) => InputDraggerExpressionResult;
export declare const parseInputDraggerNumber: (value: string) => number | null;
export declare const isInputDraggerValueAlignedToStep: ({ min, step, value, }: {
readonly min: React.InputHTMLAttributes['min'];
readonly step: React.InputHTMLAttributes['step'];
readonly value: number;
}) => boolean;
export declare const validateInputDraggerValue: ({ max, min, step, value, integerOnly, }: {
readonly max: React.InputHTMLAttributes['max'];
readonly min: React.InputHTMLAttributes['min'];
readonly step: React.InputHTMLAttributes['step'];
readonly value: string;
readonly integerOnly?: boolean;
}) => InputDraggerValidationResult;
export declare const deriveInputDraggerArrowValue: ({ direction, max, min, step, value, }: {
readonly direction: 1 | -1;
readonly max: React.InputHTMLAttributes['max'];
readonly min: React.InputHTMLAttributes['min'];
readonly step: React.InputHTMLAttributes['step'];
readonly value: number;
}) => number;
export declare const deriveInputDraggerStep: ({ min, snapToStep, step, }: {
readonly min: React.InputHTMLAttributes['min'];
readonly snapToStep: boolean;
readonly step: React.InputHTMLAttributes['step'];
}) => string | number;
export declare const deriveInputDraggerDragStartValue: ({ min, value, }: {
readonly min: React.InputHTMLAttributes['min'];
readonly value: React.InputHTMLAttributes['value'];
}) => number;
export declare const isInputDraggerValueInRange: ({ max, min, value, }: {
readonly max: React.InputHTMLAttributes['max'];
readonly min: React.InputHTMLAttributes['min'];
readonly value: number;
}) => boolean;
export declare const deriveInputDraggerValueDiff: ({ dragSensitivity, step, xDistance, }: {
readonly dragSensitivity: number;
readonly step: number;
readonly xDistance: number;
}) => number;
export declare const InputDraggerWithTextEditing: React.ForwardRefExoticComponent, "title"> & {
readonly onValueChange: (newVal: number, source: 'input' | 'drag') => void;
readonly onValueChangeCancel: (() => void) | null;
readonly onValueChangeEnd?: (newVal: number, source: 'input' | 'drag') => void;
readonly onTextChange: (newVal: string) => void;
readonly status: RemInputStatus;
readonly formatter?: (str: number | string) => string;
readonly formatterStyle?: React.CSSProperties;
readonly formatterSubtitle?: (str: number | string) => string;
readonly formatterSubtitleStyle?: React.CSSProperties;
readonly buttonStyle?: React.CSSProperties;
readonly rightAlign: boolean;
readonly small?: boolean;
readonly allowStepMismatch?: boolean;
readonly integerOnly?: boolean;
readonly snapToStep?: boolean;
readonly dragDecimalPlaces?: number;
readonly dragSensitivity?: number;
} & {
readonly textEditing: TextEditing | null;
readonly valueFromSteps: ((startValue: number, steps: number) => number) | null;
} & React.RefAttributes>;
export declare const InputDragger: React.ForwardRefExoticComponent, "title"> & {
readonly onValueChange: (newVal: number, source: 'input' | 'drag') => void;
readonly onValueChangeCancel: (() => void) | null;
readonly onValueChangeEnd?: (newVal: number, source: 'input' | 'drag') => void;
readonly onTextChange: (newVal: string) => void;
readonly status: RemInputStatus;
readonly formatter?: (str: number | string) => string;
readonly formatterStyle?: React.CSSProperties;
readonly formatterSubtitle?: (str: number | string) => string;
readonly formatterSubtitleStyle?: React.CSSProperties;
readonly buttonStyle?: React.CSSProperties;
readonly rightAlign: boolean;
readonly small?: boolean;
readonly allowStepMismatch?: boolean;
readonly integerOnly?: boolean;
readonly snapToStep?: boolean;
readonly dragDecimalPlaces?: number;
readonly dragSensitivity?: number;
} & React.RefAttributes>;
export {};