import type { LoopRun } from "./types"; export type PendingStory = { id: string; title: string; }; export declare function activeLoop(loops: ReadonlyMap): LoopRun | undefined; export declare function findLoop(loops: ReadonlyMap, requested: string): LoopRun | undefined; export declare function sortedLoops(loops: ReadonlyMap): LoopRun[]; export declare function loopOptionLabel(loop: LoopRun): string; export declare function nextPendingStory(cwd: string, prdRelativePath: string): PendingStory | null; /** * Returns: * - true => PRD exists and has at least one story not in done state * - false => PRD exists and all stories are done * - undefined => PRD missing/unreadable/invalid shape (unknown, keep loop behavior unchanged) */ export declare function hasRemainingPrdStories(cwd: string, prdRelativePath: string): boolean | undefined; export declare function markPrdStoryInProgress(cwd: string, prdRelativePath: string, storyId: string): boolean; export declare function markPrdStoryDone(cwd: string, prdRelativePath: string, storyId: string): boolean; export declare function buildIterationSessionName(loop: LoopRun, story: PendingStory | null): string; //# sourceMappingURL=loop-engine.d.ts.map