import { type ApplyOutcome, type ApplyReview, type PatchResult } from "../../internal-providers/sidekick-contracts/index.js"; import { type CloudSidekickDelegation } from "./sidekick.js"; export type CloudSidekickReviewOptions = { leadCwd: string; stateDir: string; bindingDigest: string; }; /** * Host-only Cloud result review. Exact postimages are validated in an isolated Git * index, never by running repository hooks/filters or git apply in the lead tree. * * A durable intent and private before/after images precede every host write. * Synchronous failure rolls back known writes. Restart distinguishes complete * postimages, an untouched intent and partial/foreign edits; it never blindly * reapplies a patch after an ambiguous Cloud acknowledgement. */ export declare class CloudSidekickReview { #private; constructor(options: CloudSidekickReviewOptions); workingTreeDigest(): string; pending(delegationId: string): ApplyReview | undefined; /** Recover an acknowledged human command without creating a new operation. * The caller must still verify current Cloud metadata and host postimages. */ completed(delegationId: string): ApplyReview | undefined; execute(input: { request: ApplyReview; delegation: CloudSidekickDelegation; patch?: PatchResult; hostApproved: boolean; }): Promise; acknowledge(rawRequest: ApplyReview): Promise; }