import type { AuthenticationState } from "@whiskeysockets/baileys"; import type { AuthStore } from "../../auth/store.js"; /** * Creates a Baileys auth state that stores credentials in the AuthStore. * * Expects: AuthStore instance and instance ID. * Returns: auth state object compatible with makeWASocket. */ export declare function useAuthStoreState(authStore: AuthStore, instanceId: string): Promise<{ state: AuthenticationState; saveCreds: () => Promise; }>; /** * Checks if WhatsApp auth exists in the AuthStore. */ export declare function hasAuthState(authStore: AuthStore, instanceId: string): Promise; /** * Clears WhatsApp auth from the AuthStore. */ export declare function clearAuthState(authStore: AuthStore, instanceId: string): Promise; //# sourceMappingURL=authState.d.ts.map