/** * Remote session delete endpoint (tombstone semantics), served on the * bridge's loopback HTTP server and byte-proxied by the hub at * POST /api/instances/{id}/sessions/{sessionId}/delete. * * "Delete" is the upstream App's soft delete: the tasks-index row gets * deleted=1, every listing (this bridge's /sessions history, the hub's * project list, the desktop App sidebar) hides the session, and the backend * store keeps the conversation bytes — reversible, never a purge. The id is * the RAW backend sid (the /sessions listing's currency, same as the * pass-through resume). Live conversations are refused (409): a delete * reaching one means a stale client — the listing never offers them. */ import type { IncomingMessage, ServerResponse } from "node:http"; import type { ZcodeAcpServer } from "../server.js"; /** * Build the /sessions/{id}/delete request handler for the loopback endpoint. * Async failures degrade to a status code, never into the event loop. */ export declare function createSessionDeleteHandler(server: ZcodeAcpServer): (req: IncomingMessage, res: ServerResponse, sessionId: string) => void; //# sourceMappingURL=session-delete-endpoint.d.ts.map