/** * Pure readers for the two commit-message lines `aidlc revert` trusts: the * `Task:` trailer that ties a commit to a task, and git's own * `This reverts commit .` line that marks one as already undone. * * Nothing here reads subjects. A subject mentioning "T3" for another reason * must never select a commit (revert-by-task D1). * * Requirements: revert-by-task/AC-2, AC-3, AC-6 */ /** One task a commit's trailer names. */ export interface TaskRef { instance: string; /** n in T. */ task: number; } /** * Parse one `Task:` trailer value (`/T`). * * @returns null for anything else — an unqualified `T3` or free text names no * task, so it selects nothing. */ export declare function parseTaskTrailer(value: string): TaskRef | null; /** Full shas named by `This reverts commit .` lines in a commit body. */ export declare function revertedShas(body: string): string[]; //# sourceMappingURL=trailers.d.ts.map