import type { AgentCheck, ResolveCommand, Review } from "../../types.mts"; /** Build the stale-CR clause appended to the `## Changes-requested reviews` instruction. */ export declare function buildCrStaleClause(reviews: Review[]): string; /** * Build the optional behind-base push hint. Empty unless the branch is actually behind its base * and the user configured a non-blank `iterate.behindBaseHint` — the CLI never prescribes * rebase/merge mechanics itself (see "Keep skills and loop prompts minimal" in CLAUDE.md); this * only echoes back the caller's own configured pointer. `hint` is trimmed and type-checked at the * point of use (rather than at config load) so a malformed rc file value (non-string, or * whitespace-only) degrades to "no hint" instead of rendering garbage into agent-facing text or * discarding the rest of the user's config. */ export declare function buildBehindBaseHintInstruction(baseBranch: string, hint: string, isBehind: boolean): string[]; /** * Give one branch-refresh recovery path after Shepherd's single workflow rerun has failed. * The fetched PR base branch is raw context; the caller still owns repository-specific git * mechanics and decides whether the base contains a relevant fix. */ export declare function buildRepeatedWorkflowBranchRecoveryInstructions(baseBranch: string, hasExhaustedWorkflowRerun: boolean, branch: { isBehind: boolean; hasConflicts: boolean; }): string[]; /** * Build the `Run the apply review: command` instruction. Steps stay here (not in the skill) * whenever the *unmodified, as-printed* command is unsafe without them: * * - `$HEAD_SHA`/`$DISMISS_MESSAGE` substitution: without it, the printed command has an * empty `--message`/invalid `--require-sha` and `apply review` rejects the mutation. * Contrast with what *does* stay in the skill's "Review-mutation mechanics" playbook — * dismiss-ID retention. The pointer below is load-bearing: without it, nothing in CLI output * tells the agent that playbook exists. */ export declare function buildResolveCommandInstruction(resolveCommand: ResolveCommand): string[]; /** Build the CI-triage pointer; the skill limits follow-up actions to included evidence. */ export declare function buildFailingCheckInstructions(checks: AgentCheck[]): string[]; export declare function buildFixCompletionInstruction(checks: AgentCheck[], hasConflicts?: boolean, hasShaGatedReviewMutations?: boolean): string;