import type { Project } from "../config.js"; import { type HostingAdapter } from "../domain.js"; import type { Store } from "../store.js"; import type { SdlcPolicy, WorkContract } from "./schema.js"; import type { WorkInspection } from "./store.js"; /** The managed issue section presenting a Work Item's contract. */ export declare function renderContract(id: string, contract: WorkContract, policy: SdlcPolicy): string; /** Replace the Work Item's managed section in `body`, or append it. */ export declare function withContractSection(body: string, id: string, rendered: string): string; /** * Publish the current contract to the project's issue tracker after explicit * human confirmation. Local work gets a new issue and is rebound to it; an * issue-backed item gets its managed body section replaced. The managed * section's marker makes a repeated publication find the issue it created. * An issue changed since observation, including by an interrupted update, * requires reassessment first. */ export declare function publishWork(id: string, project: Project, dependencies: { store: Store; hosting: HostingAdapter; }, options: { revision: string; }): Promise;