/** * Fastify server setup for sync-coordinator. */ import { type FastifyInstance } from 'fastify'; import type { CoordinatorConfig } from '../config/types.js'; import { CoordinatorService } from '../service/coordinator-service.js'; import type { CoordinatorHooks } from '../service/types.js'; import type { StoreManagerHooks } from '../service/store-manager.js'; /** * Options for creating a coordinator server. */ export interface CoordinatorServerOptions { /** Full configuration */ config: CoordinatorConfig; /** Custom hooks for validation/auth */ hooks?: CoordinatorHooks; /** Hooks for customizing store behavior (database ID handling, path resolution) */ storeHooks?: StoreManagerHooks; } /** * Coordinator server instance. */ export interface CoordinatorServer { /** The Fastify instance */ app: FastifyInstance; /** The coordinator service */ service: CoordinatorService; /** Start the server */ start(): Promise; /** Stop the server */ stop(): Promise; } /** * Create a coordinator server. */ export declare function createCoordinatorServer(options: CoordinatorServerOptions): Promise; //# sourceMappingURL=server.d.ts.map