import type * as React from "react";

/** One-time-code entry: N single-character cells with an optional midpoint separator. */
export interface OTPFieldProps {
  length?: number;
  size?: "default" | "lg";
  /** Insert the dash separator after this many cells; 0 disables it. */
  groupAfter?: number;
  value?: string;
  defaultValue?: string;
  onValueChange?: (value: string) => void;
  className?: string;
}
export declare function OTPField(props: OTPFieldProps): React.ReactElement;
