/** * ERC-8004 Trustless Agents SDK * * This SDK makes ZERO assumptions about implementations beyond what the spec says. * All "MAY" fields in the spec are treated as optional, not mandatory. * * The SDK accepts any Ethereum provider compatible with ethers.js v6: * - ethers.JsonRpcProvider * - ethers.BrowserProvider (wraps window.ethereum from MetaMask, etc.) * - ethers.WebSocketProvider * - Any EIP-1193 compatible provider * * Usage examples: * ```typescript * // With ethers JsonRpcProvider * const provider = new ethers.JsonRpcProvider('http://localhost:8545'); * const signer = await provider.getSigner(); * const sdk = new ERC8004SDK({ * identityRegistryAddress: '0x...', * reputationRegistryAddress: '0x...', * validationRegistryAddress: '0x...', * provider, * signer * }); * * // With browser wallet (MetaMask, etc.) * const provider = new ethers.BrowserProvider(window.ethereum); * const signer = await provider.getSigner(); * const sdk = new ERC8004SDK({ * identityRegistryAddress: '0x...', * reputationRegistryAddress: '0x...', * validationRegistryAddress: '0x...', * provider, * signer * }); * ``` */ import { ERC8004Config } from './types'; import { IdentityRegistry } from './IdentityRegistry'; export declare class ERC8004SDK { identity: IdentityRegistry; config: ERC8004Config; constructor(config: ERC8004Config); /** * Helper to connect to a local hardhat node * @param identityRegistryAddress - Address of deployed Identity Registry * @param reputationRegistryAddress - Address of deployed Reputation Registry * @param validationRegistryAddress - Address of deployed Validation Registry * @param signerIndex - Index of the hardhat account to use (default 0) */ static connectToLocalHardhat(identityRegistryAddress: string, reputationRegistryAddress: string, validationRegistryAddress: string, signerIndex?: number): Promise; /** * Get the current signer's address */ getSignerAddress(): Promise; } //# sourceMappingURL=ERC8004SDK.d.ts.map