import { CurrentUser } from './current-user' ; import { ChatKittyError } from './error' ; import { ChatKittyFailedResult , ChatKittyResult , ChatKittySucceededResult } from './result' ; export declare class UserSession { user : CurrentUser ; } export type StartSessionResult = ChatKittyResult < StartedSessionResult > | StartedSessionResult | ChatKittyFailedResult ; export declare class StartSessionRequest { username : string ; authParams ? : unknown ; } export class StartedSessionResult extends ChatKittySucceededResult { constructor ( public session ) { super ( ) ; } } export class StartSessionInProgressError extends ChatKittyError { constructor ( ) { super ( 'StartSessionInProgressError' , 'A start session request is already in progress.' ) ; } } export class SessionActiveError extends ChatKittyError { constructor ( ) { super ( 'SessionActiveError' , 'A user session is already active and must be ended before this instance can start a new session.' ) ; } } export class NoActiveSessionError extends ChatKittyError { constructor ( ) { super ( 'NoActiveSessionError' , "You're not connected to ChatKitty." ) ; } }