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.
 * Parses hunk headers to track line numbers and prefixes +/- lines
 * with `[L:<num>]` (using the new-file line number for + lines,
 * old-file line number for - lines).
 */
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>;
