/**
 * Auto-mode scanner core module.
 *
 * Extracted from hooks/handlers/stop-auto.ts.
 * Scans active increments for pending tasks and checks auto-mode session state.
 *
 * Never throws.
 *
 * @module core/session/auto-scanner
 */
export interface PendingTasksResult {
    pending: number;
    completed: number;
    incrementIds: string[];
}
export interface AutoSessionState {
    active: boolean;
    stale: boolean;
    pendingTasks: PendingTasksResult;
}
/**
 * Get auto-mode session file path (per-session or global fallback).
 */
export declare function getAutoSessionPath(stateDir: string): string;
/**
 * Check if session file is stale (older than maxSessionAge seconds).
 */
export declare function isSessionStale(sessionPath: string, maxSessionAge: number): boolean;
/**
 * Count pending tasks across active increments.
 */
export declare function scanPendingTasks(projectRoot: string): PendingTasksResult;
/**
 * Scan auto-mode session state including pending tasks.
 */
export declare function scanAutoSession(stateDir: string, projectRoot: string, configPath: string): AutoSessionState;
//# sourceMappingURL=auto-scanner.d.ts.map