import { WindowState } from '../../types'; /** * Task Manager process model. * * A "process" row is either a system process (always present, fixed identity) * or a user process derived from an open window. User rows carry the source * window id so "End Process" can close the corresponding window. */ export interface ProcessRow { /** Stable key for React + selection. */ key: string; /** Image name, e.g. `notepad.exe`. */ imageName: string; /** User Name column. */ userName: string; /** True for the fixed system processes (End Process warns first). */ system: boolean; /** Source window id for user processes; undefined for system processes. */ windowId?: string; } /** * The always-present system processes, in the order XP tends to show them. * `System Idle Process` is first and, per the real tool, soaks up whatever CPU * isn't being used by everything else. */ export declare const SYSTEM_PROCESSES: ReadonlyArray<{ imageName: string; userName: string; }>; /** Executable image name for a window (registry map, else `.exe`). */ export declare const imageNameForWindow: (win: WindowState) => string; /** * Build the full process list: user windows first (most recognizable), then the * fixed system processes. */ export declare const buildProcessRows: (windows: WindowState[], userName: string) => ProcessRow[];