/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 * * Password line editor with optional initial value so tabbing back into the field * preserves the secret. @inkjs/ui PasswordInput does not support defaultValue. * * Adapted from @inkjs/ui (MIT) password-input components. */ import { type ReactElement } from "react"; export interface CliPasswordInputProps { readonly defaultValue?: string; readonly placeholder?: string; readonly onChange?: (value: string) => void; readonly onSubmit?: (value: string) => void; } export declare function CliPasswordInput({ defaultValue, placeholder, onChange, onSubmit, }: CliPasswordInputProps): ReactElement;