/** * ChimpHands CI git: base branch (parent) vs agent branch (testchimp-* only). */ export declare const BASE_BRANCH_PREFIX = "Base branch: "; /** @deprecated Legacy platform line; still parsed for in-flight sessions. */ export declare const LEGACY_WORKING_BRANCH_PREFIX = "Working branch: "; export declare function isAgentBranchName(branch: string): boolean; export declare function parseBaseBranchFromPrompt(prompt: string): string | undefined; export declare function resolveSessionBaseBranch(prompt: string | undefined, envBaseBranch?: string): string | undefined; export declare function buildAgentBranchName(sessionId: string): string; type GitRunResult = { code: number; out: string; err: string; }; export declare function runGit(args: string[], env?: NodeJS.ProcessEnv): Promise; export type EnsureAgentBranchOptions = { sessionId: string; baseBranch?: string; /** Agent branch already reported for this session (bootstrap). */ existingAgentBranch?: string; }; export type EnsureAgentBranchResult = { agentBranch: string; baseBranch?: string; created: boolean; }; /** * Ensures the runner is on a published testchimp-* agent branch. * When checked out on the user's base branch, creates testchimp-chimphands- from it. */ export declare function ensureAgentSessionBranch(opts: EnsureAgentBranchOptions): Promise; export type EnsurePullRequestOptions = { agentBranch: string; baseBranch: string; title?: string; body?: string; }; /** Opens a PR from agent branch → base branch when none exists. Returns PR URL if created/found. */ export declare function ensurePullRequest(opts: EnsurePullRequestOptions): Promise; export declare function isPrOnlyMode(): boolean; export {};