export type ChainType = 'solana' | 'evm'; export type ChainPrefix = 'sol' | 'eth' | 'base' | 'poly' | 'bsc' | 'monad'; export interface IGlobalId { prefix: ChainPrefix; chainType: ChainType; chainId?: string; rawId: string; } export interface IAgentEndpoint { protocol: string; url: string; metadata?: Record; } export interface IAgentMetadata { skills?: string[]; tags?: string[]; version?: string; [key: string]: unknown; } export interface IAgent { id: string; globalId: string; chainType: ChainType; chainPrefix: ChainPrefix; chainId?: string; name: string; description?: string; image?: string; owner: string; collection?: string; metadata?: IAgentMetadata; endpoints?: IAgentEndpoint[]; trustTier?: number; qualityScore?: number; totalFeedbacks?: number; averageScore?: number; createdAt: number; updatedAt: number; } export interface IAgentSummary { id: string; globalId: string; chainType: ChainType; chainPrefix: ChainPrefix; name: string; description?: string; image?: string; owner: string; collection?: string; trustTier?: number; qualityScore?: number; totalFeedbacks?: number; } export type SearchMode = 'name' | 'description' | 'endpoint' | 'all'; export interface ISearchParams { query?: string; nameQuery?: string; descriptionQuery?: string; endpointQuery?: string; searchMode?: SearchMode; owner?: string; collection?: string; chainType?: ChainType; chainPrefix?: ChainPrefix; minQualityScore?: number; minTrustTier?: number; limit?: number; offset?: number; orderBy?: 'name' | 'qualityScore' | 'totalFeedbacks' | 'createdAt' | 'updatedAt'; orderDir?: 'asc' | 'desc'; /** Filter by specific MCP tools (agent must have ALL listed tools) */ mcpTools?: string[]; /** Filter by specific A2A skills (agent must have ALL listed skills) */ a2aSkills?: string[]; /** Filter by OASF skills */ oasfSkills?: string[]; /** Filter by OASF domains */ oasfDomains?: string[]; /** Filter by active status */ active?: boolean; /** Filter by x402 payment support */ x402support?: boolean; /** Filter by has MCP endpoint */ hasMcp?: boolean; /** Filter by has A2A endpoint */ hasA2a?: boolean; /** Semantic keyword search */ keyword?: string; /** Feedback-based filters (minCount, minValue, etc.) */ feedback?: { hasFeedback?: boolean; minCount?: number; maxCount?: number; minValue?: number; maxValue?: number; }; } export interface ISearchResult { results: IAgentSummary[]; total: number; hasMore: boolean; offset: number; limit: number; } export declare function toGlobalId(chainPrefix: ChainPrefix, rawId: string, chainId?: string): string; export declare function parseGlobalId(id: string): IGlobalId; export declare function isValidGlobalId(id: string): boolean; export declare function getChainTypeFromPrefix(prefix: ChainPrefix): ChainType; export declare const CHAIN_PREFIX_PRIORITY: Record; //# sourceMappingURL=agent.d.ts.map