import { default as React, RefAttributes } from 'react'; import { SafeOmit } from '../../../.deps/utils/src'; import { SafeExtract, Size } from '../../../types'; import { CommonInputProps, PlaceholderProps } from '../types'; /** @inheritdoc */ export interface PasswordInputProps extends SafeOmit, PlaceholderProps, RefAttributes { label?: string; value?: string; defaultValue?: string; width?: SafeExtract; /** Display loading indicator. */ loading?: boolean; /** * The controlled revealed state. When `true`, the password is shown as plain text. * Pair with `onRevealedChange`. When set, the component never changes the state itself. */ revealed?: boolean; /** * The uncontrolled default revealed state. When uncontrolled, the password is * automatically hidden again once focus leaves the component. * @default false */ defaultRevealed?: boolean; /** Called when the reveal toggle — or focus leaving the component — requests a revealed state change. */ onRevealedChange?: (revealed: boolean) => void; /** * Accessible label of the reveal toggle button. * @default the translated "Show password" */ toggleA11yLabel?: string; } export declare const PasswordInput: { ({ width, error, warning, label, value, defaultValue, loading, disabled, revealed, defaultRevealed, onRevealedChange, onChange, toggleA11yLabel, ref, ...rest }: PasswordInputProps): React.JSX.Element; displayName: string; };