wechaty-puppet-official-account
Version:
Wechaty Puppet for WeChat Official Accounts
17 lines • 794 B
TypeScript
import { FlashStore } from 'flash-store';
import LRU from 'lru-cache';
import type { OAMessagePayload, OAContactPayload } from './schema.js';
declare class PayloadStore {
appId: string;
protected cacheOAContactPayload?: FlashStore<string, OAContactPayload>;
protected cacheOAMessagePayload?: LRU<string, OAMessagePayload>;
constructor(appId: string);
start(): Promise<void>;
stop(): Promise<void>;
getMessagePayload(id: string): Promise<undefined | OAMessagePayload>;
setMessagePayload(id: string, payload: OAMessagePayload): Promise<void>;
getContactPayload(id: string): Promise<undefined | OAContactPayload>;
setContactPayload(id: string, payload: OAContactPayload): Promise<void>;
}
export { PayloadStore };
//# sourceMappingURL=payload-store.d.ts.map