import type { Project } from "../config.js"; import type { HostingAdapter, RunRecord } from "../domain.js"; import type { Store } from "../store.js"; export type WorkAdmission = { state: "admitted"; run: RunRecord; } | { state: "waiting"; reason: string; }; /** * Observe the Work Item's hosted source, import provider approvals, and admit * the observed revision once policy reports it ready. A closed issue, a source * needing reassessment, or a missing gate leaves the item waiting. Pass * `revision` to admit only the revision an operator inspected; replaying an * admitted revision returns its latest attempt. Hosting is resolved only for * hosted sources, so local work needs no host credentials. */ export declare function admitWork(id: string, project: Project, dependencies: { store: Store; hosting: () => HostingAdapter; }, options?: { revision?: string; recovery?: { checkSafety: (related: RunRecord[]) => Promise; }; }): Promise;