import { default as React, ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, Ref } from 'react'; import { PasswordRule } from './passwordRule'; export type PasswordInputProps = { ref?: Ref; /** * className for the element. */ className?: string; /** * The rules to apply. */ rules?: PasswordRule[]; /** * Whether the PasswordInput should fit its parent or content. * @default content */ fit?: 'content' | 'parent'; /** * The id of the PasswordInput. */ id?: string; /** * Whether the Input should be disabled. * @default false */ isDisabled?: boolean; /** * The name of the PasswordInput, used when submitting an HTML form. */ name?: string; /** * Temporary text that occupies the PasswordInput when it is empty. */ placeholder?: string; /** * The current value */ value: string | null; /** * Handler that is called when the value changes. */ onChange?: ChangeEventHandler; /** * Handler that is called when the input receives focus. */ onFocus?: FocusEventHandler; /** * Handler that is called when the input loses focus. */ onBlur?: FocusEventHandler; /** * Handler that is called when a key is pressed. */ onKeyDown?: KeyboardEventHandler; }; export declare const PasswordInput: ({ className, rules, fit, id, isDisabled, name, placeholder, value, onChange, onFocus, onBlur, onKeyDown, ref, ...rest }: PasswordInputProps) => React.JSX.Element; //# sourceMappingURL=PasswordInput.d.ts.map