export type NumpadDigit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'; /** `clear` is a held delete key: the whole value goes in one stroke. */ export type NumpadKey = NumpadDigit | '.' | 'backspace' | 'clear'; /** * The typed amount after one keypress, as a decimal string. * * - A lone `.` is not a number any parser accepts, so the leading zero is * written for the user; a second point, and any point at all on a 0-decimal * token, is refused rather than swallowed later. * - `0` is a placeholder rather than a leading digit, so typing `5` gives `5`. * - Fraction digits stop at the token's `decimals`: past that the input is dust * the transfer can't carry, and it would silently truncate at signing time. */ export declare function applyNumpadKey(value: string, key: NumpadKey, maxDecimals?: number): string; //# sourceMappingURL=numpadInput.d.ts.map