import { Database } from "../db.js"; export type ResetPolicy = "daily" | "idle" | "both"; export interface SessionConfig { id: string; platform: string; channelId: string; userId: string; resetPolicy: ResetPolicy; dailyHour: number; idleMinutes: number; lastActivity: number; createdAt: number; isBackground: boolean; parentSessionId?: string; } export declare function initSessionStore(): Promise; export declare function generateSessionId(): string; export declare function getOrCreateSession(platform: string, channelId: string, userId: string, config?: Partial): Promise; export declare function createBackgroundSession(platform: string, channelId: string, userId: string, parentSessionId?: string): Promise; export declare function touchSession(sessionId: string): Promise; export declare function getSession(sessionId: string): Promise; export declare function deleteSession(sessionId: string): Promise; export declare function listSessions(platform?: string): Promise; export declare function cleanupStaleSessions(): Promise; export declare function getPendingBackgroundResults(): Promise;