/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import type { PromptFieldDescriptor } from "../input/prompt"; interface SchemaPromptAppProps { readonly fields: readonly PromptFieldDescriptor[]; readonly onComplete: (values: Record) => void; readonly onCancel: () => void; /** * Offered as a third choice when present, and the reason the action row * below exists at all: submitting values, refusing to supply any, and walking * away undecided are three different answers. Callers that pass nothing here * keep the form exactly as it was — fields only, Enter and Esc — so the row * appears for the prompts that can actually be refused. */ readonly onDecline?: () => void; /** When set, initial keyboard focus starts on this field key (e.g. `"value"` after a CLI pre-filled key). */ readonly initialFocusedFieldKey?: string; } export declare function SchemaPromptApp({ fields, onComplete, onCancel, onDecline, initialFocusedFieldKey, }: SchemaPromptAppProps): React.ReactElement; export {};