#!/usr/bin/env node
/**
 * Headless executor for Claude CLI delegation
 * Spawns claude with -p flag for single-turn execution
 */
import { type ExecutionOptions, type ExecutionResult } from './executor/types';
export type { ExecutionOptions, ExecutionResult, StreamMessage } from './executor/types';
/**
 * Headless executor for Claude CLI delegation
 */
export declare class HeadlessExecutor {
    /**
     * Execute task via headless Claude CLI
     * @param profile - Profile name (glm, km, custom)
     * @param enhancedPrompt - Enhanced prompt with context
     * @param options - Execution options
     * @returns execution result
     */
    static execute(profile: string, enhancedPrompt: string, options?: ExecutionOptions): Promise<ExecutionResult>;
    /**
     * Spawn Claude CLI and handle execution
     */
    private static _spawnAndExecute;
    /** Validate permission mode */
    private static _validatePermissionMode;
    /** Detect Claude CLI executable */
    private static _detectClaudeCli;
    /** Execute with retry logic */
    static executeWithRetry(profile: string, enhancedPrompt: string, options?: ExecutionOptions): Promise<ExecutionResult>;
    /** Sleep utility for retry backoff */
    private static _sleep;
    /** Process prompt to detect and preserve slash commands */
    private static _processSlashCommand;
    /** Test if profile is executable */
    static testProfile(profile: string): Promise<boolean>;
}
//# sourceMappingURL=headless-executor.d.ts.map