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