/**
 * OwlCoda Native ExitWorktree Tool
 *
 * Exits a worktree session created by EnterWorktree and restores the
 * original working directory. Supports "keep" (preserve) or "remove" (delete).
 *
 * Upstream parity notes:
 * - Upstream counts uncommitted changes and new commits before removal
 * - Requires discard_changes=true when work exists
 * - Restores CWD, clears caches, kills tmux sessions
 * - Our version: same safety checks, simpler session management
 */
import type { ExitWorktreeInput, NativeToolDef } from './types.js';
import type { WorktreeState } from './enter-worktree.js';
export declare function createExitWorktreeTool(state: WorktreeState): NativeToolDef<ExitWorktreeInput>;
