import { Comment, Config } from './types';
import { AIRunner } from './ai/base';
export interface Session {
    taskId: string;
    updatedAt: number;
    fingerprint: string;
    summary: string;
    lastCommentId: string;
}
export declare function getSessionsDir(): string;
export declare function ensureSessionsDir(): void;
export declare function getSessionPath(taskId: string): string;
export declare function readSession(taskId: string): Session | null;
export declare function writeSession(taskId: string, data: Session): void;
export declare function fingerprintComments(comments: Comment[]): string;
export declare function shouldCompress(prompt: string, threshold: number): boolean;
export declare function summarizeWithRunner(comments: Comment[], runners: AIRunner[]): Promise<string | null>;
export declare function truncateFallback(comments: Comment[]): string;
export declare function buildCompressedContext(comments: Comment[], taskId: string, runners: AIRunner[], config: Config): Promise<string>;
//# sourceMappingURL=sessions.d.ts.map