import { CancelResponses } from '../../proto/ai/inworld/packets/packets.pb'; import { Awaitable, Client, ClientConfiguration, Extension, GenerateSessionTokenFn, OnPhomeneFn, User } from '../common/data_structures'; import { HistoryItem } from '../components/history'; import { SessionContinuationProps } from '../entities/continuation/session_continuation.entity'; import { InworldPacket } from '../entities/inworld_packet.entity'; import { InworldConnectionService } from '../services/inworld_connection.service'; export declare class InworldClient { private user; private scene; private client; private config; private sessionContinuation; private generateSessionToken; private onDisconnect; private onError; private onMessage; private onReady; private onHistoryChange; private onInterruption; private onPhoneme; private onAfterPlaying; private onBeforePlaying; private onStopPlaying; private extension; setUser(user: User): this; setClient(client: Client): this; setGenerateSessionToken(generateSessionToken: GenerateSessionTokenFn): this; setConfiguration(config: ClientConfiguration): this; setScene(name: string): this; setOnDisconnect(fn?: () => Awaitable): this; setOnError(fn?: (err: Error) => Awaitable): this; setOnMessage(fn?: (message: InworldPacketT) => Awaitable): this; setOnReady(fn?: () => Awaitable): this; setOnHistoryChange(fn?: (history: HistoryItemT[]) => Awaitable): this; setOnInterruption(fn?: (props: CancelResponses) => Awaitable): this; setOnPhoneme(fn?: OnPhomeneFn): this; setOnAfterPlaying(fn?: (message: InworldPacketT) => Awaitable): this; setOnBeforePlaying(fn?: (message: InworldPacketT) => Awaitable): this; setOnStopPlaying(fn?: () => Awaitable): this; setExtension(extension: Extension): this; setSessionContinuation(sessionContinuation: SessionContinuationProps): this; build(): InworldConnectionService; private buildConfiguration; private buildCapabilities; private ensureGateway; private validate; }