/** * $ns Mode — Directive and State * * Inspired by oh-my-openagent's Ultrawork mode. * Detects "$ns" keyword in user messages and injects a * maximum-rigor directive into the system prompt. * * 0-risk: all exports are pure functions or lightweight state objects. */ export interface NsModeState { /** Whether $ns mode is active for the next system prompt injection */ active: boolean; /** Activate $ns mode */ activate: () => void; /** Deactivate $ns mode (call after injection) */ deactivate: () => void; } export declare function createNsModeState(): NsModeState; /** * Detect $ns keyword in user text. * Pattern: $ns at word boundary (e.g., "$ns do X" or "enable $ns mode") */ export declare function detectNsMode(text: string): boolean; /** * Get the $ns mode directive. * Injected into the system prompt when $ns mode is active. */ export declare function getNsDirective(): string;