/**
 * Server Runner for External Integrations
 *
 * Provides a unified entry point for running code-buddy in server mode,
 * supporting both JSON-RPC and MCP protocols.
 *
 * Usage:
 *   grok --json-rpc          # Start JSON-RPC server
 *   grok --mcp-server        # Start MCP server
 *   grok --server json-rpc   # Alternative syntax
 *   grok --server mcp        # Alternative syntax
 */
export type ServerMode = 'json-rpc' | 'mcp';
export interface ServerRunnerOptions {
    mode: ServerMode;
    verbose?: boolean;
    workdir?: string;
    apiKey?: string;
}
/**
 * Run code-buddy in server mode
 */
export declare function runServer(options: ServerRunnerOptions): Promise<void>;
/**
 * Parse command line arguments and run appropriate server
 */
export declare function parseServerArgs(args: string[]): ServerRunnerOptions | null;
/**
 * Check if args indicate server mode
 */
export declare function isServerMode(args: string[]): boolean;
/**
 * Print server mode help
 */
export declare function printServerHelp(): void;
