import { type Account } from '../shared/session/index.js' type logFn = (msg: string, ...args: any[]) => void export interface WsClientOpts { log?: { info: logFn, error: logFn, debug: logFn } url: string headers?: Record apiKey?: string adminMode?: boolean account?: Account } export type FullWsClientOpts = WsClientOpts & Required> export interface Message { type: string channel: string data?: any status?: number }