/** Options for {@link Room.request}. */ export interface RequestOptions { /** Reject the returned promise if no reply arrives within this many ms * (defaults to {@link Room.requestTimeout}). */ timeout?: number; /** `"unreliable"` rides the unreliable channel (falls back to reliable when the * transport has none) and is sent once — a genuine drop is surfaced by the * `timeout`. Defaults to `"reliable"`. */ mode?: "reliable" | "unreliable"; } /** Build the Error a rejected `request` throws. `faulted:false` → a deliberate * `ctx.reject(reason)`: `name:"rejected"`, `.reason` = the raw typed reason. * `faulted:true` → a server fault: an Error rebuilt from the sanitized * `{ name, message, code }` payload. */ export declare function toRequestError(payload: any, faulted: boolean): Error;