#!/usr/bin/env bun import { type RelayConnection, type RelayServerLimits, type RelayServerLogger } from './relay-server.js'; interface RelayConnectionData { conn: RelayConnection | null; readonly addr: string; } /** Options for {@link createBunRelayServer}. */ export interface BunRelayServerOptions { /** TCP port to listen on (default 8787). */ readonly port?: number; /** Hostname/interface to bind (default all interfaces). */ readonly hostname?: string; /** Caps and rate limits (merged over DEFAULT_RELAY_LIMITS). */ readonly limits?: Partial; /** Structured logger (default console). */ readonly logger?: RelayServerLogger; } /** * Start the relay on Bun. Returns the Bun server handle (call `.stop()` to shut * down). The health endpoint `GET /` reports occupancy; everything else is the * WebSocket upgrade path. */ export declare function createBunRelayServer(options?: BunRelayServerOptions): Bun.Server; export {}; //# sourceMappingURL=relay-server-entry.d.ts.map