/** * HTTP Server * * Handles server creation, request dispatch, error handling, * and graceful shutdown for Last.js applications. */ import type { Handler } from "./types"; /** * Create and start a Last.js HTTP server. * * Automatically determines port or unix socket from BUN_PORT env var or CLI arg. * Handles cleanup and graceful shutdown automatically. */ export declare function serve(handler: Handler, options?: { port?: number; unix?: string; websocket?: any; }): Promise; export declare function findAvailablePort(startPort?: number): Promise; //# sourceMappingURL=serve.d.ts.map