import EventDeliver from "event-deliver"; import { Api } from "onebot-client/methods"; export declare class Link extends EventDeliver { #private; private ws?; constructor(options: { endpoint: string; access_token?: string; }); callApi(action: T, ...args: Parameters): Promise>; connect(): Promise; private handleMessage; private handleError; private handleClose; send(data: Record): void; dispose(): void; }