/** * @license SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Wrapper for WebSocket 'close' event. */ import { ClientEvent, ClientEventOptions } from './client-event'; export declare const WEB_SOCKET_CLOSE_EVENT_TYPE = "web-socket-close"; /** * @see WebSocketCloseEvent */ export interface WebSocketCloseEventDetails { /** * Numeric code indicating the reason for closinig. * @see https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/code */ readonly code: number; } /** * Event emitted by a MemorelayClient when its connected WebSocket emits a * 'message' event. */ export declare class WebSocketCloseEvent extends ClientEvent { static readonly type: typeof WEB_SOCKET_CLOSE_EVENT_TYPE; constructor(details: WebSocketCloseEventDetails, options?: ClientEventOptions); }