/** * ERC-8004 Agent Identity Registry service. * * Handles all interactions with the MiladyAgentRegistry contract: * - Registration (self and delegated) * - Profile updates * - Metadata (tokenURI) management * - Status queries */ import type { TxService } from "./tx-service"; export interface RegistryStatus { registered: boolean; tokenId: number; agentName: string; agentEndpoint: string; capabilitiesHash: string; isActive: boolean; tokenURI: string; walletAddress: string; totalAgents: number; } export interface RegistrationResult { tokenId: number; txHash: string; } export interface AgentRegistrationParams { name: string; endpoint: string; capabilitiesHash: string; tokenURI: string; } export declare class RegistryService { private readonly contract; private readonly txService; private readonly registryAddress; constructor(txService: TxService, registryAddress: string); get address(): string; get contractAddress(): string; getChainId(): Promise; /** * Get the full registration status for the current wallet. */ getStatus(): Promise; /** * Register the current wallet as an agent. * The NFT is minted to the wallet address stored in EVM_PRIVATE_KEY. */ register(params: AgentRegistrationParams): Promise; /** * Update the tokenURI (metadata pointer) for the current wallet's agent. * Called when the character is edited. */ updateTokenURI(newURI: string): Promise; /** * Update the agent's endpoint and capabilities hash. */ updateAgent(endpoint: string, capabilitiesHash: string): Promise; /** * Check if a specific address is registered. */ /** * Sync the full agent profile on-chain: name, endpoint, capabilities, and tokenURI. * Called when the character is edited and user wants to push changes to chain. */ syncProfile(params: { name: string; endpoint: string; capabilitiesHash: string; tokenURI: string; }): Promise; isRegistered(address: string): Promise; /** * Build the default capabilities hash used for Milady agents. */ static defaultCapabilitiesHash(): string; } //# sourceMappingURL=registry-service.d.ts.map