import type { ModelProvider, SessionEvent } from "./types.js";
export type SessionSummary = {
    sessionId: string;
    workspace: string;
    createdAt: string;
    updatedAt: string;
    lastTask?: string;
    provider?: ModelProvider;
    model?: string;
};
export declare class SessionStore {
    readonly workspace: string;
    readonly sessionId: string;
    private readonly sessionDir;
    private readonly sessionPath;
    private readonly indexPath;
    constructor(options: {
        workspace: string;
        sessionId?: string;
    });
    static workspaceSessionPath(workspace: string, sessionId: string): string;
    create(): Promise<void>;
    append(event: SessionEvent): Promise<void>;
    loadEvents(): Promise<SessionEvent[]>;
    summary(): Promise<SessionSummary>;
    private upsertIndex;
}
export declare function readSessionEvents(sessionPath: string): Promise<SessionEvent[]>;
export declare function listWorkspaceSessions(workspace: string): Promise<SessionSummary[]>;
export declare function listIndexedSessions(): Promise<SessionSummary[]>;
export declare function loadSessionSummary(workspace: string, sessionId: string): Promise<SessionSummary>;
export declare function buildSessionResumeContext(workspace: string, sessionId: string): Promise<string>;
