import { type ResetEntityKind, type ResetPipelineResult } from "../extensions/forgecli/orchestrators/common/reset-pipeline.js"; export interface ResetArgs { id: string; toPhase: string; kind: ResetEntityKind; } export interface ResetArgsError { error: string; } /** Infer entity kind from an id: a `-BUG-` segment ⇒ bug, otherwise task. */ export declare function inferKind(id: string): ResetEntityKind; /** * Parse subcommand args for `4ge reset`. Pure (no IO). * * 4ge reset FORGE-S32-T03 --to implement * 4ge reset FORGE-BUG-046 --to triage * 4ge reset X-1 --to implement --kind bug */ export declare function parseResetArgs(args: readonly string[]): ResetArgs | ResetArgsError; export interface RunResetOptions { /** Project working directory (default: process.cwd()). */ cwd?: string; /** stdout sink (default: console.log). */ print?: (s: string) => void; /** stderr sink (default: console.error). */ printErr?: (s: string) => void; /** Override the reset implementation (tests). */ reset?: (params: { kind: ResetEntityKind; cwd: string; id: string; toPhase: string; storeCli: string; }) => ResetPipelineResult; } /** * Entry point for `4ge reset`. Returns a process exit code (0 ok, 1 error). */ export declare function runReset(args: readonly string[], opts?: RunResetOptions): number;