/** * MCP server config: build Lightdash client config from environment. * Uses same env vars as CLI: LIGHTDASH_URL, LIGHTDASH_API_KEY. */ import { LightdashClient } from '@lightdash-tools/client'; import type { PartialLightdashClientConfig } from '@lightdash-tools/client'; import type { SafetyMode } from '@lightdash-tools/common'; /** * Gets the safety mode for dynamic enforcement. */ export declare function getSafetyMode(): SafetyMode; /** * Gets the safety mode for static tool filtering (binding). */ export declare function getStaticSafetyMode(): SafetyMode | undefined; /** * Sets the static safety mode (from CLI). */ export declare function setStaticSafetyMode(mode: SafetyMode): void; /** * Returns the effective project UUID allowlist. * CLI-provided values override the environment variable. * An empty array means all projects are allowed. */ export declare function getAllowedProjectUuids(): string[]; /** * Sets the project UUID allowlist from the CLI (overrides LIGHTDASH_TOOLS_ALLOWED_PROJECTS). */ export declare function setStaticAllowedProjectUuids(uuids: string[]): void; /** * Returns true when dry-run mode is active. * CLI flag overrides the LIGHTDASH_TOOLS_DRY_RUN environment variable. */ export declare function isDryRunMode(): boolean; /** * Enables or disables dry-run mode (from CLI). */ export declare function setDryRunMode(enabled: boolean): void; /** * Returns the audit log file path from LIGHTDASH_TOOLS_AUDIT_LOG, or undefined to use stderr. */ export declare function getAuditLogPath(): string | undefined; /** * Builds a LightdashClient from environment variables (and optional overrides). * Throws if LIGHTDASH_URL or LIGHTDASH_API_KEY are missing. */ export declare function getClient(config?: PartialLightdashClientConfig): LightdashClient;