import type { SessionHeader, StoredMessage } from "../types.js";
export declare class SessionStore {
    readonly id: string;
    readonly path: string;
    readonly header: SessionHeader;
    private constructor();
    static open(id: string): Promise<SessionStore>;
    static create(opts: {
        cwd: string;
        model: string;
    }): Promise<SessionStore>;
    appendMessage(message: StoredMessage): Promise<void>;
    appendReflection(summary: string): Promise<void>;
    /**
     * Read a page of message entries (newest-first within the page).
     * page=0 = latest PAGE_SIZE messages, page=1 = older ones, etc.
     */
    readMessagePage(page: number, pageSize?: number): Promise<{
        messages: StoredMessage[];
        hasMore: boolean;
    }>;
}
//# sourceMappingURL=store.d.ts.map