UNPKG

385 BTypeScriptView Raw
1import { ConnectionOptions } from "./types.js";
2export declare const MSG_TYPE_AUTH_REQUIRED = "auth_required";
3export declare const MSG_TYPE_AUTH_INVALID = "auth_invalid";
4export declare const MSG_TYPE_AUTH_OK = "auth_ok";
5export interface HaWebSocket extends WebSocket {
6 haVersion: string;
7}
8export declare function createSocket(options: ConnectionOptions): Promise<HaWebSocket>;