import type { DatabaseSync } from 'node:sqlite'; export interface CtxHistoryExportResult { outputDir: string; historyPath: string; manifestPath: string; sessionCount: number; eventCount: number; changed: boolean; } export declare function resolveDefaultCtxHistoryExportDir(env?: NodeJS.ProcessEnv): string; export declare function exportCtxHistory(db: DatabaseSync, options?: { outputDir?: string; env?: NodeJS.ProcessEnv; }): Promise;