/** * Zoe CLI — Docker & Non-Interactive Detection * * Utilities for detecting Docker environments and non-interactive TTY contexts. * Used to guard inquirer prompts and readline settings. */ /** * Detect if the current process is running inside a Docker container. * Checks: * 1. /.dockerenv file existence * 2. /proc/1/cgroup contains "docker" or "containerd" * 3. ZOE_DOCKER env var is "true" */ export declare function isDockerContainer(): boolean; /** * Determine if the CLI is running in a non-interactive context. * Returns true if: * - stdin is not a TTY * - --no-interactive flag was passed (ZOE_NO_INTERACTIVE=true) * - Running inside Docker (unless ZOE_INTERACTIVE=true overrides it) */ export declare function isNonInteractive(): boolean; /** * Check if all required provider API keys are available via environment variables * or the provided config. If so, the setup wizard can be safely skipped. * * Environment variable mappings: * - openai: OPENAI_API_KEY * - openai-compatible: OPENAI_COMPAT_API_KEY * - anthropic: ANTHROPIC_API_KEY * - glm: GLM_API_KEY * * Also checks LLM_PROVIDER to know which one is needed. */ export declare function hasRequiredProviderEnv(config: { models?: Record; }): boolean;