/** * otp - pure helpers behind : sanitize/spread a raw string across N * segments (used on paste and per-cell input) and detect completion. * Framework-free + pure so they are unit-tested directly. */ /** * Keep only the characters allowed for `numeric` mode (digits) or any * non-whitespace otherwise, then clamp to `length`. Returns the cleaned string * (<= length chars). */ export declare function sanitizeOtp(raw: string, length: number, numeric: boolean): string; /** Split a value into exactly `length` single-char cells (padding with ''). */ export declare function otpCells(value: string, length: number): string[]; /** Whether `value` fills every cell (a joined OTP has no internal gaps, so an * exact-length string is complete). */ export declare function isOtpComplete(value: string, length: number): boolean;