import type { Message } from "@kenkaiiii/gg-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, sessionsDir?: string): Promise<Session>;
export declare function loadSession(sessionPath: string, sessionsDir?: string): Promise<{
    header: SessionHeader;
    messages: Message[];
}>;
export declare function listSessions(cwd: string, sessionsDir?: string): Promise<SessionInfo[]>;
export declare function getMostRecentSession(cwd: string, sessionsDir?: string): Promise<string | null>;
export declare function persistMessage(session: Session, message: Message): Promise<void>;
//# sourceMappingURL=session.d.ts.map