import { type CreatedBy } from "../../../../../lib/graph-write/dist/index.js";
interface StepInputBase {
    dependsOn?: string[];
    onFailure?: "abort" | "skip" | "retry";
    retryLimit?: number;
    outputKey?: string;
    timeout?: number;
    label: string;
}
export interface ToolStepInput extends StepInputBase {
    type: "tool";
    plugin: string;
    tool: string;
    params?: Record<string, unknown>;
}
export type StepInput = ToolStepInput;
export interface WorkflowCreateParams {
    accountId: string;
    name: string;
    description: string;
    steps: StepInput[];
    /** Conversation sessionKey — Workflow is linked PART_OF this Conversation to satisfy the write doctrine. */
    sessionKey?: string;
    createdBy: CreatedBy;
}
export interface WorkflowCreateResult {
    workflowId: string;
    status: "active" | "draft";
    validationErrors: string[];
}
export declare function workflowCreate(params: WorkflowCreateParams): Promise<WorkflowCreateResult>;
export {};
//# sourceMappingURL=workflow-create.d.ts.map