/** * AgentWalletClient setup for AgentPay MCP. * Reads config from environment variables and creates a configured wallet instance. */ import { type Address } from 'viem'; import { createWallet } from 'agentwallet-sdk'; export interface AgentPayConfig { /** Agent hot wallet private key (0x-prefixed hex) */ agentPrivateKey: `0x${string}`; /** Deployed AgentAccountV2 address */ walletAddress: Address; /** Chain ID (default: 8453 Base Mainnet) */ chainId: number; /** RPC URL (falls back to public Base RPC) */ rpcUrl: string; /** Factory address (for deploy_wallet tool only) */ factoryAddress?: Address; /** NFT contract address (for deploy_wallet tool only) */ nftContractAddress?: Address; } /** * Load configuration from environment variables. * Only AGENT_PRIVATE_KEY and AGENT_WALLET_ADDRESS are required to get started. */ export declare function loadConfig(): AgentPayConfig; export type AgentWalletInstance = ReturnType; /** * Create an AgentWallet instance from config. * Returns the wallet bound to the configured chain + RPC. */ export declare function createAgentWallet(config: AgentPayConfig): AgentWalletInstance; /** * Get the singleton AgentPay config (loaded once from env). * Throws a descriptive error if env vars are missing. */ export declare function getConfig(): AgentPayConfig; /** * Get the singleton AgentWallet instance. * Lazily initialized on first call. */ export declare function getWallet(): AgentWalletInstance; /** * Reset singletons (for testing only). */ export declare function _resetSingletons(): void; //# sourceMappingURL=client.d.ts.map