import { ISpace, ISpaceParticipants } from '../../types/data/Space'; import { IAudioSpace, IAudioSpaceByIdResponse } from '../../types/raw/space/AudioSpaceById'; /** * The details of a single Space. * * @public */ export declare class Space implements ISpace { /** The raw space details. */ private readonly _raw; conversationControls?: number; createdAt?: string; creatorId?: string; disallowJoin?: boolean; endedAt?: string; id: string; isEmployeeOnly?: boolean; isLocked?: boolean; isMuted?: boolean; isSpaceAvailableForClipping?: boolean; isSpaceAvailableForReplay?: boolean; isSubscribed?: boolean; mediaKey?: string; noIncognito?: boolean; participantCount?: number; participants?: ISpaceParticipants; scheduledStart?: string; startedAt?: string; state?: string; title?: string; totalLiveListeners?: number; totalReplayWatched?: number; updatedAt?: string; /** * @param space - The raw space details. */ constructor(space: IAudioSpace); /** The raw space details. */ get raw(): IAudioSpace; /** * Maps a raw participant to a deserialized participant. * * @param participant - The raw participant data. */ private static _mapParticipant; /** * Maps raw participants to deserialized participants. * * @param participants - The raw participants data. */ private static _mapParticipants; /** * Convert timestamp to ISO string. * * @param value - The timestamp value. */ private static _timestampToIso; /** * Extracts and deserializes a single target space from the given raw response data. * * @param response - The raw response data. * * @returns The target deserialized space. */ static single(response: IAudioSpaceByIdResponse): Space | undefined; /** * @returns A serializable JSON representation of `this` object. */ toJSON(): ISpace; }