import type { EvidenceGovernedWorkflowHandoff } from "@oscharko-dev/keiko-contracts/evidence";
import type { ConnectedContextPack } from "@oscharko-dev/keiko-contracts/connected-context";
import { type ProposedPatchEntry, type UserApprovalTokenInput, type WorkflowHandoffRequest } from "@oscharko-dev/keiko-contracts/workflow-handoff";
import type { PatchValidation, WorkspaceWriter } from "@oscharko-dev/keiko-tools";
export interface GovernedWorkflowHandoffContext {
    readonly request: WorkflowHandoffRequest;
    readonly sourceGroundedRunId?: string | undefined;
}
export declare function contextPackStableIdForPacks(packs: readonly ConnectedContextPack[]): string;
export declare function readOnlyPathsForPacks(packs: readonly ConnectedContextPack[], editablePaths: readonly string[]): readonly string[];
export declare function evidenceAtomIdsForPacks(packs: readonly ConnectedContextPack[]): readonly string[];
export declare function approvalTokenInputFor(request: WorkflowHandoffRequest): UserApprovalTokenInput;
export declare function createApprovalToken(input: UserApprovalTokenInput): string;
export declare function buildGovernedHandoffEvidence(handoff: GovernedWorkflowHandoffContext): EvidenceGovernedWorkflowHandoff;
export declare function createScopedWriter(baseWriter: WorkspaceWriter, workspaceRoot: string, editablePaths: readonly string[]): WorkspaceWriter;
export declare function proposedPatchEntriesFromValidation(validation: PatchValidation): readonly ProposedPatchEntry[];
//# sourceMappingURL=governed-workflow.d.ts.map