UNPKG

@rodrigogs/baileys-store

Version:
15 lines (14 loc) 487 B
import { AuthenticationCreds } from 'baileys'; import { Store } from 'cache-manager'; declare const makeCacheManagerAuthState: (store: Store, sessionKey: string) => Promise<{ clearState: () => Promise<void>; saveCreds: () => Promise<void>; state: { creds: AuthenticationCreds; keys: { get: (type: string, ids: string[]) => Promise<{}>; set: (data: any) => Promise<void>; }; }; }>; export default makeCacheManagerAuthState;