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-single-file-auth-state.d.ts
1129 views
1
import type { Logger } from 'pino';
2
import type { AuthenticationState } from '../Types';
3
/**
4
* @deprecated use multi file auth state instead please
5
* stores the full authentication state in a single JSON file
6
*
7
* DO NOT USE IN A PROD ENVIRONMENT, only meant to serve as an example
8
* */
9
export declare const useSingleFileAuthState: (filename: string, logger?: Logger) => {
10
state: AuthenticationState;
11
saveState: () => void;
12
};
13
14