import type { HttpClient } from "../core/http.js"; import type { ChainResponse, ChainListResponse, CreateChainRequest, UpdateChainRequest, OneclawResponse } from "../types.js"; /** * Chains resource — list supported blockchains and manage chain configuration. * * Public endpoints let any authenticated user list enabled chains. * Admin endpoints allow adding, updating (e.g. setting an RPC URL), and removing chains. */ export declare class ChainsResource { private readonly http; constructor(http: HttpClient); /** List all enabled chains. */ list(): Promise>; /** Get a chain by name (e.g. "base") or numeric chain ID (e.g. "8453"). */ get(identifier: string): Promise>; /** List all chains including disabled ones (admin). */ adminList(): Promise>; /** Add a new chain to the registry (admin). */ create(chain: CreateChainRequest): Promise>; /** Update chain configuration, e.g. set an RPC URL (admin). */ update(chainId: string, update: UpdateChainRequest): Promise>; /** Remove a chain from the registry (admin). */ delete(chainId: string): Promise>; } //# sourceMappingURL=chains.d.ts.map