/* Elaina Baileys maintained distribution. Upstream notices and license are preserved in LICENSE and NOTICE.md. */ export const CREDS_KEY: string; export function encodeAuthValue(value: any): string; export function decodeAuthValue(type: string, raw: any): any; export function loadOptionalModule(name: string, usedBy: string): Promise; export interface AuthStoreEntry { type: string; id: string; value: string; } export interface AuthStore { read: (type: string, id: string) => Promise; readMany: (type: string, ids: string[]) => Promise>; write: (type: string, id: string, value: string) => Promise; apply: (writes: AuthStoreEntry[], removals: Omit[]) => Promise; clear: () => Promise; close?: () => Promise; } export function makeAuthStateFromStore(store: AuthStore): Promise<{ state: { creds: any; keys: { get: (type: any, ids: any) => Promise<{}>; set: (data: any) => Promise; }; }; saveCreds: () => Promise; clearAuth: () => Promise; close: () => Promise; }>;