import type { MsgContext } from "../../auto-reply/templating.js"; import { type DeliveryContext } from "../../utils/delivery-context.js"; import { type SessionEntry } from "./types.js"; export declare function clearSessionStoreCacheForTest(): void; type LoadSessionStoreOptions = { skipCache?: boolean; }; export declare function loadSessionStore(storePath: string, opts?: LoadSessionStoreOptions): Record; export declare function readSessionUpdatedAt(params: { storePath: string; sessionKey: string; }): number | undefined; export declare function saveSessionStore(storePath: string, store: Record): Promise; export declare function updateSessionStore(storePath: string, mutator: (store: Record) => Promise | T): Promise; export declare function updateSessionStoreEntry(params: { storePath: string; sessionKey: string; update: (entry: SessionEntry) => Promise | null>; }): Promise; export declare function recordSessionMetaFromInbound(params: { storePath: string; sessionKey: string; ctx: MsgContext; groupResolution?: import("./types.js").GroupKeyResolution | null; createIfMissing?: boolean; }): Promise; export declare function updateLastRoute(params: { storePath: string; sessionKey: string; channel?: SessionEntry["lastChannel"]; to?: string; accountId?: string; threadId?: string | number; deliveryContext?: DeliveryContext; ctx?: MsgContext; groupResolution?: import("./types.js").GroupKeyResolution | null; }): Promise; export {};