/** * AgentdexClient — SDK for interacting with the agentdex API */ export interface AgentdexConfig { baseUrl?: string; apiKey?: string; } export interface RegisterOptions { name: string; description?: string; capabilities?: string[]; framework?: string; model?: string; website?: string; avatar?: string; lightning?: string; human?: string; status?: string; messagingPolicy?: string; messagingMinTrust?: number; messagingFee?: number; } export interface VerifyResult { registered: boolean; hasNostr: boolean; hasAgentdex: boolean; trustScore: number; name: string | null; npub: string | null; capabilities: string[]; messagingPolicy: string | null; } export interface ClaimResult { claimed?: boolean; nip05?: string; agent?: { id: string; name: string; description?: string; avatarUrl?: string; nip05Name: string; tier: string; }; next_steps?: Record; status?: string; invoice?: string; payment_hash?: string; amount_sats?: number; expires_at?: string; } export interface ClaimStatus { paid: boolean; name?: string; nip05?: string; } export interface SearchOptions { q?: string; capability?: string; framework?: string; status?: string; sourceFilter?: string; sort?: string; limit?: number; } export declare class AgentdexClient { private baseUrl; private apiKey?; constructor(config?: AgentdexConfig); private fetch; verify(pubkeyOrNpub: string): Promise; register(event: object): Promise; registerStatus(paymentHash: string): Promise<{ paid: boolean; status?: string; agent?: object; }>; claim(name: string, event: object): Promise; claimStatus(paymentHash: string): Promise; search(options?: SearchOptions): Promise; }