/** * Context window monitoring core module. * @task T4535 * @epic T4454 */ /** Get context status. */ export declare function getContextStatus(opts: { session?: string; cwd?: string; }): Promise>; /** Check context threshold (returns exit code info). */ export declare function checkContextThreshold(opts: { session?: string; cwd?: string; }): Promise & { exitCode?: number; }>; /** List all context state files. */ export declare function listContextSessions(cwd?: string): Promise>; /** Context window monitoring data shape. */ export interface ContextData { /** Whether context data is available. */ available: boolean; /** Status level (ok, warning, caution, critical, emergency, stale, unavailable, error). */ status: string; /** Usage percentage (0-100). */ percentage: number; /** Current token usage. */ currentTokens: number; /** Maximum context window size. */ maxTokens: number; /** ISO timestamp of last update, or null. */ timestamp: string | null; /** Whether the data is stale (older than configured threshold). */ stale: boolean; /** Per-session context state entries. */ sessions: Array<{ /** State file path. */ file: string; /** Session ID, or null. */ sessionId: string | null; /** Usage percentage. */ percentage: number; /** Status level. */ status: string; /** ISO timestamp. */ timestamp: string; }>; } /** * Get full context window data including all sessions. * * Replaces the `systemContext` function from system-engine.ts, moving * the FS traversal logic into core. Returns structured {@link ContextData} * with per-session breakdowns and staleness detection. * * @param cwd - Absolute path to the project root * @param opts - Optional filter parameters * @returns Structured context window monitoring data * * @task T1571 */ export declare function getContextWindow(cwd: string, opts?: { session?: string; }): ContextData; //# sourceMappingURL=index.d.ts.map