import { type ProcessPort } from '../platform/process.js'; interface ActiveSessionsResult { /** Number of likely-active claude sessions that aren't this process. */ count: number; /** Why we returned 0 (only set when 0 and we couldn't really check). */ unsupportedReason?: 'windows' | 'ps-unavailable' | 'no-real-claude'; } /** * Count Claude Code sessions currently running on this machine. * * `realClaudePath` is the path to the actual claude binary (from * findClaudeBinary). We use it to filter out our own wrapper invocations * and only count true claude REPL/spawn instances. * * `selfPid` is the current process pid, excluded from the count. */ export declare function countActiveClaudeSessions(realClaudePath: string | null, selfPid?: number, deps?: { process?: ProcessPort; }): ActiveSessionsResult; /** * One-line, terminal-friendly warning string for use right before a switch. * Returns null when there's nothing to warn about (count === 0). * * Kept separate from the detector so the menu can render it as `p.note` * while the CLI prints it on stderr. */ export declare function buildActiveSessionsWarning(count: number): string | null; export {};