import { Session } from '../types/session.js';
export declare class SessionManager {
    private sessionsDir;
    private currentSessionFile;
    constructor(baseDir?: string);
    initializeDirectory(): Promise<void>;
    saveSession(session: Session): Promise<void>;
    setCurrentSession(sessionId: string): Promise<void>;
    getCurrentSession(): Promise<Session | null>;
    listSessions(limit?: number): Promise<Session[]>;
    endSession(sessionId: string, status: 'completed' | 'failed', error?: string): Promise<void>;
    private getSessionFilename;
    private findSessionFile;
    createSession(workspace: string, issueNumber?: number, provider?: string): Session;
}
