/** * Shared server initialization logic. * Used by both stdio (server-main.ts) and HTTP (server-http.ts) entry points. */ import { type ServerConfig } from './config.js'; import type { LimpsWatcher } from './watcher.js'; import type { Database as DatabaseType } from 'better-sqlite3'; /** * Result of initializing the shared server resources. */ export interface ServerResources { config: ServerConfig; db: DatabaseType; watcher: LimpsWatcher | null; } /** * Initialize shared server resources: config, database, file watcher. * This is the common setup used by both stdio and HTTP entry points. * * @param configPathArg - Optional config path from CLI argument * @returns Initialized server resources */ export declare function initServerResources(configPathArg?: string): Promise; /** * Shut down shared server resources. * * @param resources - The resources to shut down */ export declare function shutdownServerResources(resources: ServerResources): Promise; //# sourceMappingURL=server-shared.d.ts.map