export type SessionArtifactDeletionMethod = "trash" | "unlink"; export interface SessionArtifactPathDeletion { ok: boolean; method: SessionArtifactDeletionMethod; error?: string; } export interface ForegroundSessionBundleDeletion { foreground: SessionArtifactPathDeletion; workerArtifacts: SessionArtifactPathDeletion | { ok: true; method: "absent"; } | { ok: false; method: "preserved"; }; complete: boolean; } export interface DeleteForegroundSessionBundleOptions { agentDir: string; parentSessionId: string; sessionPath: string; removePath?: (path: string) => Promise; } /** * Move a managed path to the platform trash when available. Permanent removal is a documented * fallback only when trash cannot complete the individual path. */ export declare function removePathWithTrashFallback(path: string): Promise; /** * Explicitly delete one foreground session together with its exact session-owned control-plane * namespace. No age-based cleanup is performed. If the foreground file moves first but its worker * bundle cannot, the result reports that partial state rather than claiming a full deletion. */ export declare function deleteForegroundSessionBundle(options: DeleteForegroundSessionBundleOptions): Promise; //# sourceMappingURL=session-artifact-bundle.d.ts.map