import LRU from 'lru-cache'; import { FlashStore } from 'flash-store'; import type { MiniContactPayload, MiniMessagePayload } from '../help/struct'; import { type FileBoxInterface } from 'file-box'; declare class CacheManager { /** * ************************************************************************ * Instance Methods * ************************************************************************ */ protected cacheMessageRawPayload?: LRU; protected cacheTokenRawPayload?: LRU; protected cacheContactRawPayload?: FlashStore; protected cacheFileRawPayload?: FlashStore; /** * ************************************************************************ * Static Methods * ************************************************************************ */ init(): Promise; stop(): Promise; /** * ------------------------------- * Message Section * -------------------------------- */ getMessage(messageId: string): Promise; setMessage(messageId: string, payload: MiniMessagePayload): Promise; /** * ------------------------------- * Token Section * -------------------------------- */ getUserToken(token: string): Promise; setUserToken(token: string, userId: string): Promise; /** * ------------------------------- * Contact Section * -------------------------------- */ getContact(contactId: string): Promise; getContactList(selfId: string): Promise; setContact(contactId: string, payload: MiniContactPayload): Promise; setContactAlias(contactId: string, alias: string): Promise; /** * ------------------------------- * file Section * -------------------------------- */ getFile(fileId: string): Promise; setFile(fileId: string, payload: FileBoxInterface | undefined): Promise; } export { CacheManager }; //# sourceMappingURL=cacheManager.d.ts.map