import type { Agent } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
import type { AgentInput } from "@stigmer/sdk";
/** Return value of {@link useUpdateAgent}. */
export interface UseUpdateAgentReturn {
    /** Update an existing agent with a full input. Returns the updated resource. */
    readonly update: (input: AgentInput) => Promise<Agent>;
    /** `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 Agent resource.
 *
 * Wraps `stigmer.agent.update(input)` with loading and error state.
 * The caller must provide a **complete** `AgentInput` — the backend
 * performs full spec replacement. Use `agentToInput()` to reconstruct
 * the input from a fetched agent, modify the desired field, and pass
 * the result here.
 */
export declare function useUpdateAgent(): UseUpdateAgentReturn;
//# sourceMappingURL=useUpdateAgent.d.ts.map