import { Server } from '@modelcontextprotocol/sdk/server/index.js';
import { Store } from './core/store.js';
import './core/store-interface.js';
import './core/graph.js';
import './types.js';

interface ServeOptions {
    sse?: boolean;
    port?: number;
    debug?: boolean;
}
declare function buildServer(options?: ServeOptions): Server;
declare function startMcpServer(dir?: string, options?: ServeOptions): Promise<void>;
declare function getStaleFilesCount(store: Store, dir: string): number;
/**
 * Get names of stale files (up to a limit).
 * Used for F44 enhanced staleness warnings.
 */
declare function getStaleFileNames(store: Store, dir: string, maxFiles?: number): string[];
declare function getMcpStalenessWarning(store: Store, dir: string): string;
declare function checkTryCatch(content: string, lineNum: number, startLine: number, isPython: boolean): boolean;

export { buildServer, checkTryCatch, getMcpStalenessWarning, getStaleFileNames, getStaleFilesCount, startMcpServer };
