import type { Workflow } from "@stigmer/protos/ai/stigmer/agentic/workflow/v1/api_pb";
import type { WorkflowInput } from "@stigmer/sdk";
/** Return value of {@link useUpdateWorkflow}. */
export interface UseUpdateWorkflowReturn {
    /** Update an existing workflow with a full input. Returns the updated resource. */
    readonly update: (input: WorkflowInput) => Promise<Workflow>;
    /** `true` while the update RPC is in flight. */
    readonly isUpdating: boolean;
    /** Error from the last failed update, or `null` when healthy. */
    readonly error: Error | null;
    /** Clear the error state. */
    readonly clearError: () => void;
}
/**
 * Mutation hook that updates an existing Workflow resource.
 *
 * Wraps `stigmer.workflow.update(input)` with loading and error state.
 * The caller must provide a **complete** `WorkflowInput` -- the backend
 * performs full spec replacement. Use `workflowToInput()` to reconstruct
 * the input from a fetched workflow, modify the desired field, and pass
 * the result here.
 */
export declare function useUpdateWorkflow(): UseUpdateWorkflowReturn;
//# sourceMappingURL=useUpdateWorkflow.d.ts.map