import { type ExtensionAPI } from "@earendil-works/pi-coding-agent"; import { type WorkspaceMutation } from "../../app/workspace/workspace-undo.js"; export { WORKSPACE_MUTATION_ENTRY_TYPE } from "../../app/workspace/workspace-undo.js"; export declare const WORKSPACE_UNDO_RPC_COMMAND = "__pix-workspace-undo"; export declare const WORKSPACE_UNDO_RESULT_CHANNEL = "pix.workspace-undo-result"; export declare const WORKSPACE_UNDO_RPC_ENV = "PIX_ACP_WORKSPACE_UNDO_BRIDGE"; export type WorkspaceUndoBridgeRequest = { requestId: string; targetEntryId: string; }; export type WorkspaceUndoBridgeResult = { requestId: string; status: "ok" | "warning" | "cancelled" | "error"; revertedChanges?: number; changedFiles?: number; error?: string; }; type SessionBranchEntry = { id?: unknown; type?: unknown; customType?: unknown; data?: unknown; }; export default function workspaceUndoBridge(pi: ExtensionAPI): void; export declare function workspaceMutationsAfterEntry(branch: readonly SessionBranchEntry[], targetEntryId: string, legacyIndex?: Readonly>): WorkspaceMutation[]; export declare function parseWorkspaceUndoBridgeRequest(value: string): WorkspaceUndoBridgeRequest | undefined;