import type { Message } from "@kenkaiiii/gg-ai";
import { type SessionInfo } from "../../core/session-manager.js";
import type { Provider } from "@kenkaiiii/gg-ai";
export interface UseSessionManagerReturn {
    sessionId: string;
    sessionPath: string;
    create: (cwd: string, provider: Provider, model: string) => Promise<void>;
    load: (sessionPath: string) => Promise<Message[]>;
    persistMessages: (messages: Message[], fromIndex: number) => Promise<void>;
    listSessions: (cwd: string) => Promise<SessionInfo[]>;
}
export declare function useSessionManager(sessionsDir: string): UseSessionManagerReturn;
//# sourceMappingURL=useSessionManager.d.ts.map