/**
 * Direct Python Interface - Replacement for PythonBridge
 * ======================================================
 *
 * This is a simplified, direct interface to Python components that replaces
 * the complex PythonBridge. It calls the direct_interface.py script directly
 * with the centrally resolved memory directory.
 *
 * Benefits:
 * - Much simpler than PythonBridge
 * - Uses centralized path resolution
 * - Direct command execution
 * - Minimal overhead
 */
export interface PythonCommandResult {
    success: boolean;
    data?: any;
    error?: string;
    output?: string;
    error_type?: 'python_error' | 'timeout' | 'spawn_error' | 'json_parse_error' | 'mcp_gateway_error';
    error_details?: {
        command?: string;
        args?: any;
        python_traceback?: string;
        exit_code?: number | null;
        stderr?: string;
        stdout?: string;
        timestamp?: string;
        timeout_ms?: number;
        elapsed_ms?: number;
        spawn_error?: string;
    };
    [key: string]: any;
}
export declare class DirectPythonInterface {
    private pythonMemoryDir;
    private memoryDir;
    private activeProcesses;
    private processCleanupCallbacks;
    constructor();
    onProcessCleanup(callback: () => void): void;
    terminateAllProcesses(): Promise<void>;
    private findPythonMemoryDir;
    /**
     * Execute a Python command through the direct interface
     */
    executeCommand(command: string, args?: any, timeoutMs?: number): Promise<PythonCommandResult>;
    /**
     * Journey command helpers
     */
    buildJourney(): Promise<PythonCommandResult>;
    searchJourney(query: string, limit?: number): Promise<PythonCommandResult>;
    getJourneyStatus(): Promise<PythonCommandResult>;
    /**
     * Memory command helpers
     */
    storeMemory(content: string, type?: string): Promise<PythonCommandResult>;
    recallMemories(query?: string): Promise<PythonCommandResult>;
    /**
     * Other command helpers
     */
    getEssence(topic?: string): Promise<PythonCommandResult>;
    getNeuralState(): Promise<PythonCommandResult>;
    runStartup(): Promise<PythonCommandResult>;
    runRecover(): Promise<PythonCommandResult>;
    runUnifiedAnalysis(query: string): Promise<PythonCommandResult>;
    runAutoEnhance(): Promise<PythonCommandResult>;
    runLearn(topic: string): Promise<PythonCommandResult>;
    /**
     * Indexing and stats helpers
     */
    indexConversations(force?: boolean): Promise<PythonCommandResult>;
    getStats(): Promise<PythonCommandResult>;
    searchConversations(query: string, limit?: number): Promise<PythonCommandResult>;
    generateVideo(): Promise<PythonCommandResult>;
    getIdentity(): Promise<PythonCommandResult>;
    /**
     * Neural consciousness helpers
     */
    generateNeuralResponse(context: any): Promise<PythonCommandResult>;
    indexCommandOutput(commandData: any): Promise<PythonCommandResult>;
    /**
     * Get timeout for specific MCP tool operations
     */
    private getMCPTimeout;
    /**
     * MCP Gateway call method
     * Executes MCP tools through the Python gateway with method-specific timeouts
     */
    callMCPGateway(toolName: string, args?: any): Promise<any>;
}
export declare function getDirectPythonInterface(): DirectPythonInterface;
//# sourceMappingURL=DirectPythonInterface.d.ts.map