import type { DevToolsSys } from "@builder.io/dev-tools/core";
import type { CLIArgs } from "./index";
/**
 * Split a unified diff string into per-file chunks.
 * Each chunk starts with `diff --git a/... b/...`
 */
export declare function splitDiffByFile(diff: string): string[];
/**
 * Add line number prefixes to diff content lines.
 *
 * Format:
 *   - `+` line  → `[L:N]` where N is the new-file (RIGHT) line.
 *   - `-` line  → `[L:N]` where N is the old-file (LEFT) line.
 *   - context   → `[L:NEW/OLD]` showing both side-specific line numbers,
 *                 because new and old can diverge within a hunk once `+`/`-`
 *                 lines appear. Pick NEW for side: RIGHT, OLD for side: LEFT.
 *                 If NEW === OLD, only one number is shown.
 *
 * SubmitPRReview takes a `side` parameter so the LLM tells GitHub which
 * side the chosen number refers to.
 */
export declare function addLineNumbers(diff: string): string;
/**
 * Entry point for `builderio agent <subcommand>`.
 * Internal-only command used by AI agents.
 */
export declare function runAgentCommand(sys: DevToolsSys, subCommand: string | undefined, args: CLIArgs): Promise<void>;
