import { Event, type SkyWayError } from '@skyway-sdk/common'; import type { Channel } from '@skyway-sdk/model'; import { type ChannelInit } from '.'; import { Config, type ConfigOptions } from './config'; import type { ChannelQuery } from './domain/api'; export declare type RtcApiClientArgs = { appId: string; token: string; } & Partial; export declare class RtcApiClient { readonly appId: string; readonly config: Config; private apiClient; private _eventObserverFactory; /** @throws {@link SkyWayError} */ static Create(args: RtcApiClientArgs): Promise; closed: boolean; readonly onReconnectStart: Event; readonly onReconnectSuccess: Event; readonly onFatalError: Event>>; private constructor(); updateAuthToken(token: string): Promise; /**ms */ getServerUnixtimeInMs(): Promise; /**sec */ getServerUnixtimeInSec(): Promise; /**@throws {@link SkyWayError} */ createChannel(init?: ChannelInit): Promise; findChannel(query: ChannelQuery): Promise; findOrCreateChannel(query: ChannelInit): Promise; deleteChannel(channelId: Channel['id']): Promise; close(): void; } //# sourceMappingURL=client.d.ts.map