import type { Message } from "@prestyj/ai";
import type { SessionHeader, SessionEntry, SessionInfo } from "./types.js";
export interface Session {
    id: string;
    path: string;
    append(entry: SessionEntry): Promise<void>;
}
export declare function createSession(cwd: string, provider: string, model: string): Promise<Session>;
export declare function loadSession(sessionPath: string): Promise<{
    header: SessionHeader;
    messages: Message[];
}>;
export declare function listSessions(cwd: string): Promise<SessionInfo[]>;
export declare function getMostRecentSession(cwd: string): Promise<string | null>;
export declare function persistMessage(session: Session, message: Message): Promise<void>;
//# sourceMappingURL=session.d.ts.map