export declare function useWebSocket(url: string): { data: string | null; error: Event | null; sendMessage: (msg: string) => void; };