import { type AuthenticationState } from "@whiskeysockets/baileys";
export declare class EncryptedFileStore {
    private readonly directory;
    private readonly key;
    constructor(directory: string, secret: string);
    path(name: string): string;
    directoryPath(): string;
    write(name: string, value: unknown): Promise<void>;
    read<T>(name: string): Promise<T | undefined>;
    remove(name: string): Promise<void>;
}
export declare function createEncryptedAuthState(store: EncryptedFileStore, sessionId: string): Promise<Readonly<{
    state: AuthenticationState;
    saveCreds: () => Promise<void>;
    clear: () => Promise<void>;
}>>;
