/** * Lemma API v2 — HTTP server (Lane C) * * Boots the /v2 app alongside, and without touching, the intact v1 server * (src/cloud/server.ts:42 listens on LEMMA_CLOUD_PORT/3100 — untouched). v2 * listens on its own port so both can run side by side during the swarm cutover. * * Wiring: DATABASE_URL present ⇒ Postgres-backed store/identity/rate-limiter * (Lane B / Lane D); absent ⇒ local file-backed store + in-memory identity/rate * limiter, so `startV2Server()` also works with zero external services for dev. * * KNOWN GAP (see lane-notes/C.md ## handoff): UsageLedger has no durable backend * yet (Lane E ships only `InMemoryLedgerStore`) — usage counters reset on * restart until a Postgres-backed `AppendOnlyStore` lands. * * Ownership: Lane C. */ import type { Server } from 'http'; export interface StartV2ServerOptions { port?: number; /** Overrides the DATABASE_URL-presence check — pass explicitly in tests. */ databaseUrl?: string; } /** Starts the /v2 HTTP server. Resolves with the underlying `http.Server` once listening. */ export declare function startV2Server(options?: StartV2ServerOptions): Promise; export default startV2Server; //# sourceMappingURL=server.d.ts.map