import { MorphSegment, MorphSegmentKind } from './types'; export type NumberSegment = MorphSegment & { kind: MorphSegmentKind; }; export declare function isDigit(char: string): boolean; export declare function hasDigit(value: string): boolean; /** What is left of a token once its digits and separators go — "$", "%", "()". */ export declare function numericSkeleton(word: string): string; /** * Whether a token is a quantity. Strict on purpose, and on by default: merely * containing a digit is not enough, or "COVID-19" and "2024-01-01" morph by place. */ export declare function isNumericWord(word: string): boolean; export declare function classifyKind(char: string): MorphSegmentKind; /** The locale's decimal separator — the pivot every alignment is measured from. */ export declare function decimalSeparator(locale: string): string; /** Per-character segments, matched by caret where `cursorIndex` is given, else by place. */ export declare function segmentNumber(value: string, prevSegments?: NumberSegment[], cursorIndex?: number, decimalChar?: string): NumberSegment[];