/**
 * Vigthoria CLI - Legion Parallel Orchestration
 *
 * Submit work to Hyper Loop's Legion engine for parallel execution.
 *
 * Usage:
 *   vigthoria legion "Refactor auth and update tests"
 *   vigthoria legion --workers          List available Legion workers
 *   vigthoria legion --status           Show Legion infrastructure status
 */
import { Config } from '../utils/config.js';
import { Logger } from '../utils/logger.js';
export type LegionOptions = {
    /** Enables Vigthoria Cortex maximum-intelligence execution when --cortex is supplied. */
    cortex?: boolean;
    /** Model tier: 'heavy' (default — strongest LLMs) or 'lite' (cost-efficient, high quality). */
    tier?: 'heavy' | 'lite';
    email?: string;
    password?: string;
    [key: string]: any;
};
export declare class LegionCommand {
    private config;
    private logger;
    constructor(config: Config, logger: Logger);
    private getHyperloopUrls;
    private getHeaders;
    private readJsonResponse;
    private propagateLegionApiError;
    run(request: string | undefined, options: LegionOptions): Promise<void>;
    private runCortex;
    private isCriticalRoleFailure;
    private isOptionalRepairRoleFailure;
    private estimateAdditionalLoopQuote;
    private confirmAdditionalLoopCharge;
    private runMandatoryPreflight;
    private scanProject;
    private resolveModelProfiles;
    private buildRoleQuote;
    private buildCortexExplicitSteps;
    private buildBillingQuote;
    private evaluateBillingGate;
    private parseBooleanCandidate;
    private fetchCortexEntitlement;
    private isMasterAdminFree;
    private isCortexTestMode;
    private getBillingBaseUrl;
    private parseNumericCandidate;
    private extractVigcoinBalance;
    private getPurchaseUrlFromPayload;
    private fetchWalletState;
    private attemptDirectCharge;
    private collectExecutionCharge;
    private resolveBillingInsufficientFunds;
    private printBillingGateSummary;
    private printCortexQuote;
    private confirmExecution;
    /**
     * SSE streaming URL for the Legion execution endpoint.
     * Server installs use the loopback service credential. User installations
     * must use the authenticated Coder gateway; localhost:8020 on a customer's
     * machine is not Vigthoria infrastructure.
     */
    private getLegionStreamUrl;
    private getLegionServiceKey;
    private planAndExecute;
    private buildCortexRunReport;
    private extractModifiedFiles;
    private writeCortexSummaryReport;
    private formatLegionError;
    private showWorkers;
    private showStatus;
}
