import type { TrustMeshConfig, Rating, TrustScore, Dispute } from './types.js'; import { type Storage } from './storage.js'; export declare class TrustMesh { private config; private storage; private engine; private _running; constructor(config: TrustMeshConfig); /** * Start the mesh node (ready to accept ratings and queries). */ start(): Promise; /** * Rate an interaction with another agent. */ rate(partial: Omit & { rater?: string; }): Promise; /** * Get the trust score for an agent. */ getTrustScore(target: string, viewer?: string): Promise; /** * Get trust scores for multiple agents (batch). */ getTrustScores(targets: string[], viewer?: string): Promise; /** * File a dispute against a rating. */ dispute(partial: Omit & { challenger?: string; }): Promise; /** * Resolve a dispute. */ resolveDispute(disputeId: string, status: 'resolved-upheld' | 'resolved-dismissed'): Promise; /** * Get trust graph for an agent. */ getGraph(agentId: string): Promise<{ node: import("./types.js").GraphNode | null; ratedBy: import("./types.js").GraphEdge[]; rated: import("./types.js").GraphEdge[]; }>; /** * Get all known peers. */ getPeers(): Promise; /** * Start the REST API server. */ serve(config?: Partial & { apiKey?: string; }): Promise, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>; /** * Get underlying storage (for advanced use / testing). */ getStorage(): Storage; /** * Get the engine config. */ getConfig(): TrustMeshConfig; /** * Clean shutdown. */ stop(): Promise; } export { TrustMesh as default }; export * from './types.js';