/** * Centralized CI environment detection utility. * Used by cache, CLI, and other modules to detect CI environments. */ /** * Detects if the current environment is a CI/CD environment. * This is used to disable interactive prompts, cache operations, and adjust output. */ export declare const isCIEnvironment: () => boolean; /** * Whether the persistent analysis cache (~/.cdk-insights/cache/analysis-cache.json) * should bail out for the current run. By default the cache is disabled in CI — * ephemeral runners would never hit it anyway. Setting * CDK_INSIGHTS_ENABLE_CACHE_IN_CI=true opts back in: useful when a workflow * persists ~/.cdk-insights/cache across job runs via actions/cache (or similar), * so unchanged resources can serve from cache instead of re-paying for AI. * * Correctness in CI is already enforced by the cache key, which embeds * PROMPT_SCHEMA_VERSION, the resource content hash, every source-file hash, * and the auth context — any drift invalidates the entry. */ export declare const shouldSkipAnalysisCache: () => boolean; /** * Gets the name of the detected CI provider, if any. * Returns undefined if not in a CI environment. */ export declare const getCIProvider: () => string | undefined; /** * Checks if the environment supports interactive prompts. * Returns false in CI environments, when stdin/stdout is not a TTY, * or when explicitly disabled via environment variable. * * Non-interactive when ANY of: * - CI environment detected * - CDK_INSIGHTS_NON_INTERACTIVE env var is set * - stdin is not a TTY (input is piped) * - stdout is not a TTY (output is piped) */ export declare const supportsInteractivePrompts: () => boolean;