import { Component, ComponentProps, ComponentPropsWithRef, ReactElement, RefObject } from 'react';
import Button from '../Button';
import FormField from '../FormField';
import { PasswordMeterProps } from './PasswordMeter';
import './FormFieldPassword.less';
export declare type FormFieldPasswordProps = {
    /**
     * Is show button hidden?
     * @since 0.0.59
     */
    hideShowButton?: boolean;
    /**
     * Is generate button hidden?
     * @since 0.0.59
     */
    hideGenerateButton?: boolean;
    /**
     * Is password meter hidden?
     * @since 0.0.59
     */
    hidePasswordMeter?: boolean;
    /**
     * Additional props for password meter. See [Popover](#!/Popover) for more information.
     * @since 1.5.6
     */
    passwordMeterProps?: PasswordMeterProps;
    /**
     * Size of the control
     * @since 1.5.6
     */
    size: 'md' | 'lg' | 'xl' | 'fill';
    /**
     * The browser will automatically focus on the component upon rendering the screen
     * @since 1.9.0
     */
    autoFocus?: boolean;
    /**
     * Prevent password autocompletion.
     * @since 2.5.1
     */
    autoComplete?: 'new-password';
    /**
     * A render function for customizing the password generation button.
     * @since 3.13.0
     */
    generateButton?: (generateButtonProps: ComponentPropsWithRef<typeof Button>) => ReactElement;
    /**
     * @ignore
     */
    className?: string;
    /**
     * @ignore
     */
    baseClassName?: string;
} & ComponentProps<typeof FormField>;
declare type FormFieldPasswordState = {
    visible: boolean;
    passwordMeterVisible: boolean;
};
/**
 * `FormFieldPassword` component provides secure way to enter a password.
 * @since 0.0.58
 */
declare class FormFieldPassword extends Component<FormFieldPasswordProps, FormFieldPasswordState> {
    static defaultProps: {
        hideShowButton: boolean;
        generateButton: undefined;
        hideGenerateButton: boolean;
        hidePasswordMeter: boolean;
        passwordMeterProps: {};
        size: string;
        autoFocus: undefined;
        autoComplete: undefined;
        className: undefined;
        baseClassName: string;
    };
    state: {
        visible: boolean;
        passwordMeterVisible: boolean;
    };
    targetRef: RefObject<HTMLSpanElement>;
    handleToggleClick: () => void;
    handleClosePasswordMeter: () => void;
    handleBlur: () => void;
    renderGenerateButton({ setValue, isDisabled, }: {
        setValue: (value: any) => void;
        isDisabled: () => boolean;
    }): JSX.Element;
    render(): JSX.Element;
}
export default FormFieldPassword;
