import type React from 'react'; import type { TextLikeProps } from './types'; export interface PasswordInputProps extends TextLikeProps { /** * Password is initially visible. * * @default false */ defaultPasswordVisible?: boolean; /** * Pass `current-password` to autocomplete the users current password or * `new-password` to autocomplete the new password in a change password form. */ autoComplete?: 'current-password' | 'new-password' | 'off'; /** * Regular expression that the password must match. */ pattern?: string; /** * Specifies the visible width, in characters, of the input. */ size?: number; /** * Minimum length of the password. */ minLength?: number; /** * Maximum length of the password. */ maxLength?: number; /** * Label for the show password button. */ showPasswordLabel?: string; /** * Default value of an uncontrolled input. */ defaultValue?: string; /** * Value of the input. * * Makes the input controlled. */ value?: string; /** * Fires immediately when the input’s value is changed by the user (for example, it fires on every keystroke). */ onChange?: React.ChangeEventHandler; } /** * PasswordInput should be used when user enters a password. * It lets the user show or hide the contents of the input. */ export declare const PasswordInput: React.ForwardRefExoticComponent>;