import WebSocket from 'ws'; import type { AlertTypes } from './alert.types.ts'; import type { PlexServer } from './server.ts'; export declare class AlertListener { key: string; _ws?: WebSocket; private readonly server; callback: (data: AlertTypes) => void; constructor(server: PlexServer, callback: (data: AlertTypes) => void); run(): Promise; stop(): void; }