import type { EventSource, EventTypeDescriptor } from "@opengeni/sdk"; import { type AutomationDraft } from "./automation-model.js"; import type { EventSourceChoice } from "./event-source-model.js"; import type { EventSourceLogoResolver } from "./event-source-tile.js"; export interface AutomationFormProps { /** Where it starts: a saved automation's draft, or `newAutomationDraft()`. */ initial: AutomationDraft; /** It edits a saved automation: the button says Save changes. */ editing?: boolean | undefined; /** Where its runs go: on in one chat, or a new chat each run. */ destination: "chat" | "new_chat"; /** Event triggers run here. False offers the schedule only. */ eventTriggers: boolean; /** Sources the person can point triggers at; undefined while loading. */ sources: EventSource[] | undefined; loadEventTypes: (sourceId: string) => Promise; sourceLogo?: EventSourceLogoResolver | undefined; /** Opens the host's "Add a source" page; offered when no source fits. */ onAddSource?: ((choice?: EventSourceChoice) => void) | undefined; /** Arguments a new MCP subscription starts with, such as `{ projectId }`. */ argumentDefaults?: Readonly> | undefined; /** Saves the draft. Throw to keep the form open; the error's message is shown. */ onSubmit: (draft: AutomationDraft) => Promise; onCancel: () => void; /** The clock for schedule previews. */ now?: Date | undefined; className?: string | undefined; } export declare function AutomationForm({ initial, editing, destination, eventTriggers, sources, loadEventTypes, sourceLogo, onAddSource, argumentDefaults, onSubmit, onCancel, now, className, }: AutomationFormProps): import("react").JSX.Element; /** What went wrong, as the server said it, ending in a full stop. */ export declare function errorSentence(error: unknown): string;