import { ChatClient, Room } from "@ably/chat"; import { AblyBaseCommand } from "./base-command.js"; import { BaseFlags } from "./types/cli.js"; export declare abstract class ChatBaseCommand extends AblyBaseCommand { static globalFlags: { port: import("@oclif/core/interfaces").OptionFlag; "tls-port": import("@oclif/core/interfaces").OptionFlag; tls: import("@oclif/core/interfaces").OptionFlag; verbose: import("@oclif/core/interfaces").BooleanFlag; json: import("@oclif/core/interfaces").BooleanFlag; "pretty-json": import("@oclif/core/interfaces").BooleanFlag; "web-cli-help": import("@oclif/core/interfaces").BooleanFlag; }; private _chatClient; private _cleanupTimeout; /** * finally disposes of the chat client, if there is one, which includes cleaning up any subscriptions. * * It also disposes of the realtime client. */ finally(error: Error | undefined): Promise; private _cleanup; /** * Create a Chat client and associated resources */ protected createChatClient(flags: BaseFlags, options?: { restOnly?: boolean; }): Promise; protected setupRoomStatusHandler(room: Room, flags: Record, options: { roomName: string; successMessage?: string; listeningMessage?: string; }): { failurePromise: Promise; }; }