import type { HumanInputQuestion, HumanInputSecretSaveTo, HumanInputSecretSpec } from "@opengeni/sdk"; import { type HumanInputFormMessages, type SecretFieldReading } from "../human-input-model.js"; /** Read and clear one secret field at submit time; the value never enters React state. */ export type SecretFieldHandle = { read: () => SecretFieldReading; clear: () => void; focus: () => void; }; export type SecretQuestionFieldProps = { question: HumanInputQuestion & { secret: HumanInputSecretSpec; }; fieldId: string; messages: HumanInputFormMessages; autoFocus: boolean; /** Save to targets this person may write. Defaults to all three. */ allowedSaveTo?: readonly HumanInputSecretSaveTo[] | undefined; error?: string | undefined; /** Question prompt chrome rendered by the form (multi-question cards). */ describedBy?: string | undefined; register: (handle: SecretFieldHandle | null) => void; /** The person changed the field: clears a stale validation error. */ onEdited: () => void; }; /** * The ask card's secret field: an uncontrolled password input (read through a * ref, so the value never reaches React state, props, logs or storage) with * show/hide, optional Generate, an optional username placed first so password * managers pair the two, soft `looksLike`/`pattern` hints, and Save to. */ export declare function SecretQuestionField({ question, fieldId, messages, autoFocus, allowedSaveTo, error, describedBy, register, onEdited, }: SecretQuestionFieldProps): import("react").JSX.Element;