import WebSocket from 'ws';
/**
 * Listens to the socket connection and stores the socket for later use
 * @param wss The WebSocket Server
 */
export declare function socketListener(wss: WebSocket.Server, onConnect: () => void): void;
/**
 * Sends messages to the WebSocket with specific type and executes callback
 */
export declare function sendMessage(
/** Type of message: reload - triggers reload; error - shows errors in browser; everything else just gets logged in the browser */
type: 'reload' | 'error' | undefined, 
/** Message sent over ws */
message?: string): void;
