type AnyHono = { fetch: (request: Request, ...args: any[]) => Response | Promise; }; /** * Check if we're running in Bun */ export declare function isBun(): boolean; /** * Check if we're running in Node.js */ export declare function isNode(): boolean; /** * Get the current runtime name */ export declare function getRuntime(): "bun" | "node" | "unknown"; export interface ServerHandle { port: number; stop: () => void | Promise; } /** * Start an HTTP server using the appropriate runtime */ export declare function serve(app: AnyHono, port: number): Promise; /** * Find an available port starting from the given port */ export declare function findAvailablePort(startPort?: number): Promise; export {};