import { type CleanSessionResult } from "@pulsemcp/air-core"; export interface CleanSessionOptions { /** * Agent adapter name (e.g., "claude"). When omitted, the adapter is read * from the on-disk manifest written by the previous `prepareSession`. Pass * an explicit value only to override that lookup. */ adapter?: string; /** Target directory whose AIR-managed artifacts should be removed. Defaults to process.cwd(). */ target?: string; /** * Path to air.json. Used only to locate adapter packages installed under * `~/.air/node_modules/`. The clean operation itself does not require an * air.json — it reads the on-disk manifest. Uses AIR_CONFIG env or * `~/.air/air.json` when omitted; if no air.json exists, adapter * resolution falls back to the SDK's normal Node module search. */ config?: string; /** Print what would be removed without modifying disk. */ dryRun?: boolean; /** Skip skill removal — manifest entry for skills is preserved. */ keepSkills?: boolean; /** Skip hook removal — manifest entry for hooks is preserved. */ keepHooks?: boolean; /** Skip MCP server removal — manifest entry for MCP servers is preserved. */ keepMcpServers?: boolean; } export interface CleanSessionSdkResult extends CleanSessionResult { /** Display name of the adapter that performed the clean. */ adapterDisplayName: string; } /** * Remove every artifact AIR has previously written to a target directory. * * Resolves the adapter (from extensions if an air.json is available, then * from the adapter registry) and delegates to its `cleanSession()` method. * Throws a clear error when the adapter is not installed or doesn't * implement `cleanSession`. */ export declare function cleanSession(options?: CleanSessionOptions): Promise; //# sourceMappingURL=clean.d.ts.map