//#region src/application/contracts/WorkflowViewContracts.d.ts
type WorkflowNodeDto = Readonly<{
  id: string;
  kind: string;
  name?: string;
  type: string;
  role?: string;
  icon?: string;
  parentNodeId?: string;
  /** Short retry policy label for canvas/properties (e.g. fixed / exponential). */
  retryPolicySummary?: string;
  /** Whether this node declares a node-level error handler. */
  hasNodeErrorHandler?: boolean;
  /** When true, downstream nodes may run even when this node outputs zero items. */
  continueWhenEmptyOutput?: boolean;
  /** Declared I/O ports from node config (unioned with ports inferred from edges on the canvas). */
  declaredOutputPorts?: ReadonlyArray<string>;
  declaredInputPorts?: ReadonlyArray<string>;
  /** When `kind === "trigger"`, distinguishes a live trigger from a TestTrigger. */
  triggerKind?: "live" | "test";
  /**
   * Author-supplied description (when present on the node config). Surfaced in the node
   * properties panel so authors revisiting a TestTrigger six months later remember which
   * mailbox / fixture file / data source the test cases originate from.
   */
  description?: string;
  /**
   * When present, the node is a SubWorkflow invocation targeting this workflow id. Surfaced in
   * the properties panel as an "Open in editor" navigation link.
   */
  referencedWorkflowId?: string;
  /**
   * Static configuration summary for the inspector — short label/value pairs that describe
   * what this node will do at a glance, before any run telemetry exists. Pulled from the
   * node config's optional `inspectorSummary()` hook (`NodeConfigBase.inspectorSummary`).
   */
  inspectorSummary?: ReadonlyArray<Readonly<{
    label: string;
    value: string;
  }>>;
}>;
type WorkflowEdgeDto = Readonly<{
  from: Readonly<{
    nodeId: string;
    output: string;
  }>;
  to: Readonly<{
    nodeId: string;
    input: string;
  }>;
}>;
type WorkflowDto = Readonly<{
  id: string;
  name: string;
  /** When true, trigger setup runs and webhooks are registered for this workflow. */
  active: boolean;
  nodes: ReadonlyArray<WorkflowNodeDto>;
  edges: ReadonlyArray<WorkflowEdgeDto>;
  /** Workflow-level error hook configured on the definition. */
  hasWorkflowErrorHandler?: boolean;
}>;
type WorkflowSummary = Readonly<{
  id: string;
  name: string;
  /** When true, trigger setup runs and webhooks are registered for this workflow. */
  active: boolean;
  /** Path under workflow discovery root: folders + workflow file stem. */
  discoveryPathSegments: readonly string[];
}>;
//#endregion
export { WorkflowSummary as i, WorkflowEdgeDto as n, WorkflowNodeDto as r, WorkflowDto as t };
//# sourceMappingURL=WorkflowViewContracts-B7aFQcIw.d.ts.map