Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@adiwajshing/baileys/lib/Utils/use-multi-file-auth-state.d.ts
1129 views
1
import { AuthenticationState } from '../Types';
2
/**
3
* stores the full authentication state in a single folder.
4
* Far more efficient than singlefileauthstate
5
*
6
* Again, I wouldn't endorse this for any production level use other than perhaps a bot.
7
* Would recommend writing an auth state for use with a proper SQL or No-SQL DB
8
* */
9
export declare const useMultiFileAuthState: (folder: string) => Promise<{
10
state: AuthenticationState;
11
saveCreds: () => Promise<void>;
12
}>;
13
14