import { IAutomation } from "./automation.js"; import { ICreateAutomationOptions, IUpdateAutomationOptions } from "./automationService.js"; export interface IShowAutomationDialogOptions { readonly existing?: IAutomation; } export type IAutomationDialogResult = { readonly kind: "create"; readonly value: ICreateAutomationOptions; } | { readonly kind: "update"; readonly id: string; readonly value: IUpdateAutomationOptions; };