import type { MaskFull } from './entries'; /** * Formatter interface for digit range and caret calculations */ export interface FormatterHelpers { /** * Format digits into display string with mask delimiters */ formatDisplay: (digits: string) => string; /** * Get maximum number of digits for the current country */ getMaxDigits: () => number; /** * Get placeholder string for the input */ getPlaceholder: () => string; /** * Get caret position in display string for given digit index */ getCaretPosition: (digitIndex: number) => number; /** * Get digit range [start, end) for selection range in display string * Returns null if no digits are selected */ getDigitRange: (digits: string, selStart: number, selEnd: number) => [number, number] | null; /** * Check if the current number of digits is a valid complete phone number */ isComplete: (digits: string) => boolean; } /** * Create a phone formatter for a given country */ export declare function createPhoneFormatter(country: MaskFull): FormatterHelpers; //# sourceMappingURL=formatter.d.ts.map