/** * The result of detecting whether the current process is running inside an * AI coding agent environment. */ export interface AgentEnvironment { /** * True if at least one agent environment was detected. */ isAgent: boolean; /** * The identifiers of every detected agent, deduplicated. * * More than one agent can be reported at the same time, as agent sessions * can be nested. */ agents: string[]; } /** * Detects whether the current process is running inside an AI coding agent * environment, based on the environment variables that those tools set in * the shells they spawn. * * Currently supported: Claude Code and Codex. Other agents that advertise * themselves via the generic `AI_AGENT` variable are reported as "unknown". * * @returns The detected agent environment. */ export declare function detectAgentEnvironment(): AgentEnvironment; /** * Checks whether the current process is running interactively, meaning both * stdin and stdout are TTYs. * * This is orthogonal to agent detection, but can be a useful hint of whether * the process is running in an automated environment. * * @returns True if the current process is running interactively. */ export declare function isInteractive(): boolean; //# sourceMappingURL=environment.d.ts.map