import { Hono } from "hono"; import type { Config } from "../config/schema.js"; import { Library } from "../core/library.js"; import { FileWatcher } from "../features/file-watcher/file-watcher.js"; /** * Result of starting a server with file watcher. */ export interface ServerWithFileWatcherResult { /** The Hono application */ app: Hono; /** The library instance */ library: Library; /** The file watcher instance */ fileWatcher: FileWatcher; /** Dispose function to clean up resources */ dispose: () => Promise; } /** * Create the main Hono server application. * @param library - Library instance for the references API * @param config - Configuration for the server * @returns Hono application */ export declare function createServer(library: Library, config: Config): Hono; /** * Start a server with file watcher for automatic library reload. * Uses the same pattern as MCP server file monitoring. * @param libraryPath - Path to the library file * @param config - Configuration for the server * @returns Server with file watcher result */ export declare function startServerWithFileWatcher(libraryPath: string, config: Config): Promise; //# sourceMappingURL=index.d.ts.map