import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { type AnalysisFinding as Finding, type AnalysisResult as ClientResult } from './transport.js'; export interface ServerConfig { baseUrl: string; apiKey: string; capabilities?: string[]; maxBytes?: number; fetch?: typeof globalThis.fetch; } export declare const DEFAULT_MAX_BYTES = 26214400; export declare const URL_FETCH_TIMEOUT_MS = 30000; export declare class EvidenceStore { private readonly entries; put(id: string, findings: readonly Finding[]): void; get(id: string): readonly Finding[] | undefined; } export declare function analysisId(result: ClientResult, counter: number): string; export interface BuildOptions { config: ServerConfig; client?: { analyzeFile: (bytes: Uint8Array, filename?: string) => Promise; sanitizeText?: (text: string) => Promise; }; readFileImpl?: (path: string) => Promise; fetchImpl?: typeof globalThis.fetch; findCopiesImpl?: (filename: string) => Promise; nowImpl?: () => Date; } export interface Candidate { path: string; modified: Date; bytes: number; exactName: boolean; } export declare function findLocalCopies(filename: string, deps: { home: string; readDir: (dir: string) => Promise>; statFile: (path: string) => Promise<{ mtime: Date; size: number; }>; }): Promise; export declare function ago(from: Date, now: Date): string; export declare function buildServer(options: BuildOptions): Server; export declare function describeError(error: unknown, home?: string): string; //# sourceMappingURL=server.d.ts.map