import { SessionManager } from "@earendil-works/pi-coding-agent"; /** * Sessions are pi's, not ours: it stores, lists and reopens them under * PI_STATE_DIR, or in the one file `--session-file` names. `--no-session` keeps * a run entirely in memory. */ export declare function openSessionManager(cwd: string, args: SessionArgs): Promise; /** The model a resumed session was last running, so `-c` needs no --model. */ export declare function sessionModel(manager: SessionManager): SavedModel | null; export declare function runSessions(cwd: string, json?: boolean): Promise; /** Long enough to clear the UUIDv7 timestamp prefix, which repeats per minute. */ export declare function shortId(id: string): string; export interface SessionArgs { continueLast?: boolean; resume?: string; session?: string; sessionFile?: string; noSession?: boolean; } export interface SavedModel { provider: string; modelId: string; }