import { FileCache, PadproContactPayload, PadproRoomInvitationPayload, PadproRoomMemberPayload, PadproRoomPayload } from '../schemas'; export declare class CacheManager { /** * ************************************************************************ * Static Methods * ************************************************************************ */ private static _instance?; static readonly Instance: CacheManager; static init(token: string, userId: string): Promise; static release(): Promise; /** * ************************************************************************ * Instance Methods * ************************************************************************ */ private cacheContactRawPayload?; private cacheRoomMemberRawPayload?; private cacheRoomRawPayload?; private cacheRoomInvitationRawPayload?; private cacheFile?; /** * ------------------------------- * Contact Section * -------------------------------- */ getContact(contactId: string): PadproContactPayload | undefined; setContact(contactId: string, payload: PadproContactPayload): void; deleteContact(contactId: string): void; getContactIds(): string[]; getAllContacts(): PadproContactPayload[]; hasContact(contactId: string): boolean; getContactCount(): number; /** * ------------------------------- * Room Section * -------------------------------- */ getRoom(roomId: string): PadproRoomPayload | undefined; setRoom(roomId: string, payload: PadproRoomPayload): void; deleteRoom(roomId: string): void; getRoomIds(): string[]; getRoomCount(): number; hasRoom(roomId: string): boolean; /** * ------------------------------- * Room Member Section * -------------------------------- */ getRoomMember(roomId: string): { [contactId: string]: PadproRoomMemberPayload; } | undefined; setRoomMember(roomId: string, payload: { [contactId: string]: PadproRoomMemberPayload; }): void; deleteRoomMember(roomId: string): void; /** * ------------------------------- * Room Invitation Section * -------------------------------- */ getRoomInvitation(messageId: string): PadproRoomInvitationPayload | undefined; setRoomInvitation(messageId: string, payload: PadproRoomInvitationPayload): void; deleteRoomInvitation(messageId: string): void; /** * ------------------------------- * CDN File Cache Section * -------------------------------- */ getFileCache(fileId: string): FileCache | undefined; setFileCache(fileId: string, cache: FileCache): void; /** * ------------------------------- * Private Method Section * -------------------------------- */ private parseJSON; private initCache; private releaseCache; } //# sourceMappingURL=cache-manager.d.ts.map