/**
 * Code Buddy Bindings for Unified Scripting
 *
 * Provides full integration with code-buddy features:
 * - AI/CodeBuddy API calls
 * - Tool execution (read, edit, search, grep)
 * - Context management
 * - Agent control
 * - MCP integration
 *
 * Migrated from src/fcs/codebuddy-bindings.ts
 */
import { CodeBuddyScriptConfig, CodeBuddyValue } from './types.js';
interface CodeBuddyClientInterface {
    chat(messages: Array<{
        role: string;
        content: string;
    }>): Promise<string>;
    complete(prompt: string): Promise<string>;
}
interface MCPManagerInterface {
    callTool(server: string, tool: string, args: Record<string, unknown>): Promise<unknown>;
    listServers(): string[];
    listTools(server: string): string[];
}
export interface CodeBuddyBindingsConfig extends CodeBuddyScriptConfig {
    codebuddyClient?: CodeBuddyClientInterface;
    mcpManager?: MCPManagerInterface;
    conversationHistory?: Array<{
        role: string;
        content: string;
    }>;
    contextFiles?: Set<string>;
}
/**
 * Create code-buddy bindings for the scripting runtime
 */
export declare function createGrokBindings(config: CodeBuddyBindingsConfig, print: (msg: string) => void): Record<string, CodeBuddyValue>;
/**
 * Set the CodeBuddy client instance (called from code-buddy initialization)
 */
export declare function setCodeBuddyClient(client: CodeBuddyClientInterface): void;
/**
 * Set the MCP manager instance
 */
export declare function setMCPManager(manager: MCPManagerInterface): void;
export {};
