import { Command } from '@oclif/core'; import { BaseCommand } from './base-command.js'; import type { ResolvedB2CConfig } from '../config/index.js'; import type { AuthStrategy } from '../auth/types.js'; /** * Base command for Managed Runtime (MRT) operations. * Uses API key authentication. * * API key resolution order: * 1. --api-key flag * 2. MRT_API_KEY environment variable (SFCC_MRT_API_KEY also supported) * 3. ~/.mobify config file (api_key field), or ~/.mobify--[hostname] if --cloud-origin is set * * Project/environment resolution order: * 1. --project / --environment flags * 2. MRT_PROJECT / MRT_ENVIRONMENT environment variables (SFCC_-prefixed and MRT_TARGET also supported) * 3. dw.json (mrtProject / mrtEnvironment fields) * * Cloud origin resolution: * 1. --cloud-origin flag * 2. MRT_CLOUD_ORIGIN environment variable (SFCC_MRT_CLOUD_ORIGIN also supported) * 3. dw.json (mrtOrigin field) * 4. Default: https://cloud.mobify.com */ export declare abstract class MrtCommand extends BaseCommand { static baseFlags: { 'api-key': import("@oclif/core/interfaces").OptionFlag; project: import("@oclif/core/interfaces").OptionFlag; environment: import("@oclif/core/interfaces").OptionFlag; 'cloud-origin': import("@oclif/core/interfaces").OptionFlag; 'credentials-file': import("@oclif/core/interfaces").OptionFlag; 'log-level': import("@oclif/core/interfaces").OptionFlag<"trace" | "debug" | "info" | "warn" | "error" | "silent" | undefined, import("@oclif/core/interfaces").CustomOptions>; debug: import("@oclif/core/interfaces").BooleanFlag; json: import("@oclif/core/interfaces").BooleanFlag; jsonl: import("@oclif/core/interfaces").BooleanFlag; lang: import("@oclif/core/interfaces").OptionFlag; config: import("@oclif/core/interfaces").OptionFlag; instance: import("@oclif/core/interfaces").OptionFlag; 'project-directory': import("@oclif/core/interfaces").OptionFlag; 'extra-query': import("@oclif/core/interfaces").OptionFlag; 'extra-body': import("@oclif/core/interfaces").OptionFlag; 'extra-headers': import("@oclif/core/interfaces").OptionFlag; }; protected loadConfiguration(): Promise; /** * Gets an API key auth strategy for MRT. */ protected getMrtAuth(): AuthStrategy; /** * Check if MRT credentials are available. */ protected hasMrtCredentials(): boolean; /** * Validates that MRT credentials are configured, errors if not. * @throws {Error} If MRT API key is not configured */ protected requireMrtCredentials(): void; }