import { Event, type SkyWayError } from '@skyway-sdk/common'; import type { Channel, Member, Publication, Subscription } from '@skyway-sdk/model'; import type { RtcRpcApiClient } from '@skyway-sdk/rtc-rpc-api-client'; import type { ChannelInit, ChannelQuery, MemberInit, PublicationInit, RtcApi, SubscriptionInit } from '../domain/api'; export declare class RtcApiImpl implements RtcApi { private _client; closed: boolean; readonly onClose: Event; readonly onReconnectStart: Event; readonly onReconnectSuccess: Event; readonly onFatalError: Event>>; constructor(_client: RtcRpcApiClient); /** @throws {@link SkyWayError} */ connect(): Promise; updateAuthToken(token: string): Promise; close(): void; private _commonError; /**@throws {@link SkyWayError} */ createChannel(appId: string, channelInit: ChannelInit): Promise; getChannel(appId: string, { name, id }: ChannelQuery): Promise; findOrCreateChannel(appId: string, query: ChannelInit): Promise; deleteChannel(appId: string, id: Channel['id']): Promise; updateChannelMetadata(appId: string, id: Channel['id'], metadata: string): Promise; join(appId: string, channelId: Channel['id'], memberInit: MemberInit): Promise; updateMemberTtl(appId: string, channelId: Channel['id'], memberId: Member['id'], ttlSec: number): Promise; /** * @returns Date.now() */ getServerUnixtime(appId: string): Promise; updateMemberMetadata(appId: string, channelId: Channel['id'], memberId: Member['id'], metadata: string): Promise; leave(appId: string, channelId: Channel['id'], memberId: Member['id']): Promise; /**@throws {@link SkyWayError} */ publish(appId: string, init: PublicationInit): Promise; updatePublicationMetadata(appId: string, channelId: Channel['id'], publicationId: Publication['id'], metadata: string): Promise; disablePublication(appId: string, channelId: Channel['id'], publicationId: Publication['id']): Promise; enablePublication(appId: string, channelId: Channel['id'], publicationId: Publication['id']): Promise; unpublish(appId: string, channelId: Channel['id'], publicationId: Publication['id']): Promise; /**@throws {@link SkyWayError} */ subscribe(appId: string, init: SubscriptionInit): Promise; unsubscribe(appId: string, channelId: Channel['id'], subscriptionId: Subscription['id']): Promise; } //# sourceMappingURL=api.d.ts.map