/** * Factory: createRouter(opts?) → Router * * Options: * - heartbeat: { intervalMs?, timeoutMs? } → enables heartbeat behavior * - limits: { maxPending?, maxPayloadBytes? } → enables rate limiting * * No capability options here; validators/pubsub/telemetry are plugins. */ import type { ConnectionData } from "../context/base-context.js"; import type { Router } from "./router.js"; import type { CreateRouterOptions } from "./types.js"; /** * Create a new router instance. * * @param opts Optional configuration: * - heartbeat: heartbeat settings (optional) * - limits: message/payload limits (optional) * @returns A RouterCore ready for plugins and handlers * * Example: * ```ts * const router = createRouter<{ userId: string }>({ * heartbeat: { intervalMs: 30_000, timeoutMs: 5_000 }, * limits: { maxPending: 128, maxPayloadBytes: 64 * 1024 }, * }); * ``` */ export declare function createRouter(opts?: CreateRouterOptions): Router; //# sourceMappingURL=createRouter.d.ts.map