/** @jsxImportSource preact */ /** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { JSX } from "preact"; import type { WebCommandBadge } from "../../annotations"; import type { WebRunsMembership, WebRunsOrder } from "../../commandTree"; import type { WebField } from "../../commandFields"; import { type FormValues } from "../formModel"; type FieldWithWidget = WebField & { widget?: string; }; export declare function OptionsForm({ binaryName, path, description, fields, values, errors, badges, note, runsInOrder, runsIn, onChange, onRun, canRun, }: { binaryName: string; path: readonly string[]; /** * The command's one-line help. It reads here rather than in the breadcrumb: * the crumb clips it to whatever the topbar has left over, and this is the * pane where someone is deciding what the command does before running it. */ description?: string; fields: readonly FieldWithWidget[]; values: FormValues; errors: readonly string[]; badges?: readonly WebCommandBadge[]; note?: string; /** Set when this command runs its siblings in order — an `all`. */ runsInOrder?: WebRunsOrder; /** Set when a sibling `all` runs this command. */ runsIn?: WebRunsMembership; onChange: (key: string, value: string | boolean) => void; onRun: (dryRun: boolean) => void; /** False while the CLI is not answering its heartbeat; running would just fail. */ canRun?: boolean; }): JSX.Element; export {};