export interface ChatCheckpoint { id: string; threadId: string; runId: string | null; commitSha: string; message: string; createdAt: number; } /** * The dev-mode git checkpoints saved for a thread, newest first. Throws * `FrameworkRouteError` when the list cannot be read (including the 403 a * non-dev or non-localhost server answers), so a failed read is never an * empty list. */ export declare function listChatCheckpoints(input: { threadId: string; apiUrl?: string; signal?: AbortSignal; }): Promise; export type ChatCheckpointRestoreTarget = { runId: string; checkpointId?: never; } | { checkpointId: string; runId?: never; }; /** * Reset the working tree to a checkpoint, by the run that produced it or by * checkpoint id. Resolves only when the server confirms the restore; any other * answer throws `FrameworkRouteError`, whose `serverMessage` carries the * server's reason (for example, that no checkpoint was saved for that turn). */ export declare function restoreChatCheckpoint(input: ChatCheckpointRestoreTarget & { apiUrl?: string; }): Promise<{ commitSha: string; }>;