import { SolidNotificationMessage } from "./SolidNotificationMessage.mjs"; import { SolidContainer } from "../resources/SolidContainer.mjs"; import { SolidLeaf } from "../resources/SolidLeaf.mjs"; import { SolidConnectedPlugin } from "../SolidConnectedPlugin.mjs"; import { ConnectedContext, NotificationSubscription } from "@ldo/connected"; import { WebSocket } from "ws"; import { NotificationChannel } from "@solid-notifications/types"; //#region src/notifications/Websocket2023NotificationSubscription.d.ts /** * @internal * An implementation of the Websocket2023 notifiction spec */ declare class Websocket2023NotificationSubscription extends NotificationSubscription { private socket; private createWebsocket; private reconnectInterval; private reconnectAttempts; private isManualClose; private maxReconnectAttempts; constructor(resource: SolidLeaf | SolidContainer, parentSubscription: (message: SolidNotificationMessage) => void, context: ConnectedContext, createWebsocket?: (address: string) => WebSocket); open(): Promise; discoverNotificationChannel(): Promise; subscribeToWebsocket(notificationChannel: NotificationChannel): Promise; private onClose; protected close(): Promise; } //#endregion export { Websocket2023NotificationSubscription }; //# sourceMappingURL=Websocket2023NotificationSubscription.d.mts.map