import { type StopView } from "../../debugger/edits/rows.js"; import type { CheckpointEdit } from "../../runtime/state/checkpointPatch/index.js"; import type { Shown } from "./visit.js"; import type { PendingPreview } from "../../debugger/edits/rows.js"; /** Every flag the `edit` leaf declares, for the command tree. */ export declare const EDIT_FLAGS: { flag: string; help: string; }[]; export type EditRequest = { action?: string; values: Record; drop: boolean; }; /** The view a visit's stop gives the edit tables. */ export declare function viewOf(shown: Shown, pending: PendingPreview): StopView | null; export type EditListing = { name: string; flags: ({ flag: string; choices: string[]; default: string | null; } | { flag: string; kind: "text" | "json" | "amount"; })[]; }; /** The verbs this stop takes, each with its flags, choices, and default. */ export declare function listEdits(view: StopView): EditListing[]; export declare function listingText(listing: EditListing[]): string; /** The edits `request` means at `view`, or why it cannot be made. */ export declare function editsFor(request: EditRequest, view: StopView): { edits: CheckpointEdit[]; } | { refused: string; };