/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import type { PasswordProps as AntdPasswordProps } from 'antd/es/input';
import React from 'react';
export interface PasswordInputProps extends AntdPasswordProps {
    /**
     * Render a visual strength bar beneath the input. Defaults to `false`. The
     * score is computed locally — opting in does NOT add any form validation;
     * use a separate `Form.Item.rules` entry for that (or wire the entry up to
     * a cross-plugin password-validator extension point if your project
     * provides one).
     */
    checkStrength?: boolean;
}
/**
 * `Input.Password` plus an optional strength meter, ported from the v1
 * `Password` component. The strength scoring and bar UI are identical to v1,
 * so users who switch from a v1 page to a v2 page see the same visual signal.
 *
 * The component is value-shape compatible with antd `Input.Password` — drop
 * it into any existing `Form.Item<password>` and toggle the meter with
 * `checkStrength`.
 *
 * Caveats:
 *
 * - Strength scoring is purely a UX hint, not validation. Submitting a weak
 *   password is still allowed unless the server (or a separately installed
 *   password-policy plugin) rejects it.
 * - The meter swallows the gap between `<Input.Password>` and the next form
 *   element. If your `Form.Item` already adds vertical rhythm, the meter
 *   inherits it; no extra spacing is added.
 */
export declare function PasswordInput(props: PasswordInputProps): React.JSX.Element;
export default PasswordInput;
