import { Context, Adapter } from 'koishi';
import { IIROSE_Bot } from './bot';
export declare class WsClient<C extends Context = Context> extends Adapter.WsClient<C, IIROSE_Bot<C, IIROSE_Bot.Config & WsClient.Config>> {
    private event;
    live: NodeJS.Timeout | null;
    private setTimeoutId;
    loginObj: {
        r?: string;
        n?: string;
        p?: string;
        st?: string;
        mo?: string;
        mb?: string;
        mu?: string;
        lr?: string;
        rp?: string;
        fp?: string;
        i?: string;
        nc?: string;
        s?: string;
        uid?: string;
        li?: string;
        la?: string;
        vc?: string;
    };
    firstLogin: boolean;
    constructor(ctx: C, bot: IIROSE_Bot<C, IIROSE_Bot.Config & WsClient.Config>);
    /**
     * 准备ws通信
     * @returns
     */
    prepare(): Promise<WebSocket>;
    /**
     * 接受ws通信
     */
    accept(): void;
    /**
     * 开始ws通信
     */
    start(): Promise<void>;
    /**
     * 关闭ws通信
     */
    stop(): Promise<void>;
    /**
     * 获取延迟
     * @param url
     * @returns
     */
    private getLatency;
}
export declare namespace WsClient {
    interface Config extends Adapter.WsClientConfig {
    }
}
export declare function IIROSE_WSsend(bot: IIROSE_Bot, data: string): void;
