/**
 * `agents sessions stop <id>` — end a live agent session outright: stop its
 * interactive process and tear down its tmux/mux session, so the session becomes
 * done/closed rather than an orphaned idle background process.
 *
 * The lifecycle sibling of `detach` that does NOT resume headless. `detach`
 * backgrounds a still-wanted agent (stop the terminal, keep it working); `stop`
 * is for when the work is over — the agent's editor tab was closed, or you want
 * it gone. Both reuse the same live-session resolution and the same
 * `stopInteractive` teardown (tmux `kill-session`, else SIGTERM→SIGKILL the pid),
 * so a session killed here reaps its helpers exactly as `detach` does before it
 * resumes.
 *
 * The primary caller is AGI EXT: when a user genuinely closes an agent tab
 * (Cmd+W), the extension runs this so the underlying agent + its mux are shut
 * down instead of being left running detached (the "Cmd+W orphans an idle
 * session" bug). A window RELOAD does NOT call this — the extension distinguishes
 * the two via `terminal.exitStatus.reason` and only a real user close tears down.
 */
import type { Command } from 'commander';
export declare function registerSessionsStopCommand(program: Command): void;
export declare function stopSessionAction(id: string, opts?: {
    local?: boolean;
}): Promise<void>;
