import type { InputSelectionRange } from './interface'; export declare function parse(value: string): number | null; export declare function isWipValue(value: string): boolean; export declare function validator(value: number | null): boolean; export declare function format(value: number | undefined | null, precision: number | undefined): string; export declare function parseNumber(number: number | null | undefined | string): number | null; export declare function getPrecision(value: string | number): number; export declare function stripAmountFormatting(value: string): string; export declare function isValidAmountInput(value: string): boolean; export declare function isAmountInputWithinDigitLimit(value: string, maxDigits?: number): boolean; export declare function getRejectedSelectionRange(prevDisplayedValue: string, attemptedDisplayedValue: string, selectionStart: number, selectionEnd: number): InputSelectionRange; export declare function parseAmount(input: string): number | null; export declare function formatAmount(value: number | undefined | null, precision: number | undefined): string; export declare function formattedToRawIndex(formatted: string, caret: number): number; export declare function rawIndexToCaret(formatted: string, rawIndex: number): number; export declare function isRawWipValue(formatted: string): boolean; export declare function mapSelectionAfterFormat(formatted: string, newFormatted: string, selectionStart: number, selectionEnd: number): InputSelectionRange;