export declare function getSetting(tokenHash: string, key: string): string | null; export declare function saveSetting(tokenHash: string, key: string, value: string): void; export declare function getDraft(sessionName: string): string; export declare function saveDraft(sessionName: string, content: string): void; export declare function deleteDraft(sessionName: string): void; export declare function cleanupOldDrafts(maxAgeDays?: number): number; export declare function getAnnotation(sessionName: string, filePath: string): { content: string; updatedAt: number; } | null; export declare function saveAnnotation(sessionName: string, filePath: string, content: string, updatedAt: number): void; export declare function cleanupOldAnnotations(maxAgeDays?: number): number; export interface AutoSession { session_name: string; task_dir: string; status: string; max_iterations: number; timeout_minutes: number; started_at: string; } export interface AutoStep { id: number; session_name: string; step: string; result: string; next: string; checkpoint: string; iteration: number; started_at: string; ended_at: string | null; } export declare function createAutoSession(sessionName: string, taskDir: string, maxIterations: number, timeoutMinutes: number): void; export declare function getAutoSession(sessionName: string): AutoSession | null; export declare function getAllRunningAutoSessions(): AutoSession[]; export declare function updateAutoStatus(sessionName: string, status: string): void; export declare function deleteAutoSession(sessionName: string): void; export declare function insertAutoStep(sessionName: string, step: string, result: string, next: string, checkpoint: string, iteration: number): number; export declare function endAutoStep(stepId: number): void; export declare function getAutoSteps(sessionName: string): AutoStep[]; export declare function getLastAutoStep(sessionName: string): AutoStep | null; export declare function deleteAutoSteps(sessionName: string): void; export declare function closeDb(): void;