import { AbstractStream } from './stream.abstract.js'; import type { OAuthTokens } from '../oauth.types.js'; import type { WebSocketLike } from './events.types.js'; /** * Base class to connect to the CleverCloud Event API using WebSocket. * * @abstract */ export declare class EventsStream extends AbstractStream { apiHost: string; tokens: OAuthTokens; appId?: string; protected _ws: T; protected _wsCloseListener: (reason: any) => void; constructor({ apiHost, tokens, appId }: { apiHost: string; tokens: OAuthTokens; appId?: string; }); protected _openSource(): Promise; protected _closeSource(): void; private _prepareEventsWs; private _parseEventMessage; private _isSocketReadyMessage; private _isAuthErrorMessage; private _matchesAppId; } //# sourceMappingURL=events.d.ts.map