export interface McpTempSandbox { root: string; env: NodeJS.ProcessEnv; cleanup: () => void; } export interface McpTempReaperOptions { nowMs?: number; staleAfterMs?: number; isProcessAlive?: (pid: number) => boolean; } /** Remove launcher-owned roots left behind when the launcher was killed abruptly. */ export declare function reapStaleMcpTempSandboxes(parent: string, opts?: McpTempReaperOptions): number; /** * Give one external MCP process exclusive ownership of its temporary files. * * Some browser drivers create launch artifacts before their own cleanup has * been registered. Keeping those artifacts below one launcher-owned root lets * Jinn remove the whole tree when the MCP process exits instead of leaking * thousands of siblings into the machine-wide temporary directory. */ export declare function createMcpTempSandbox(env?: NodeJS.ProcessEnv): McpTempSandbox; //# sourceMappingURL=temp-sandbox.d.ts.map