import type { Transport } from './provider.js'; export interface MemoryTransport extends Transport { /** Whether this endpoint is currently attached to its room. */ readonly connected: boolean; } export interface MemoryHub { /** Create an endpoint for `roomId`; it hears the other endpoints of the same room. */ createTransport: (roomId: string) => MemoryTransport; /** Number of connected endpoints in a room. */ size: (roomId: string) => number; } export interface MemoryHubOptions { /** Deliver through `queueMicrotask` instead of synchronously. */ async?: boolean; /** Return false to drop a message (simulate loss); receives raw bytes and the sender index. */ filter?: (data: Uint8Array, from: number) => boolean; } export declare function createMemoryHub(options?: MemoryHubOptions): MemoryHub; //# sourceMappingURL=memory-transport.d.ts.map