import { type PonyCommitMessage } from "./commit-message.js"; import { type PonyProject } from "./project.js"; export interface WritePolicyResult { commitSha: string | null; recoveryOperation?: "merge" | "rebase"; } export interface MutationTarget { absolutePath: string; existed: boolean; includeInCommit?: boolean; } export interface WritePolicyMutation { targets: MutationTarget[]; commitMessage: PonyCommitMessage; apply: () => Promise; rollback: () => Promise; } interface PushDestination { remoteName: string; remoteRef: string; trackingRef: string; } export declare class PushDeliveryError extends Error { readonly commitSha: string; readonly remoteName: string; readonly remoteRef: string; readonly retryCommand: string; constructor(commitSha: string, destination: PushDestination, retryCommand: string, detail: string); } export declare function assertSupportedWritePolicy(project: PonyProject): void; /** * Apply one declared filesystem mutation and, in commit mode, deliver it as an * isolated local commit. Callers must bypass this function for domain-level * no-change results so idempotent operations never invoke Git. */ export declare function applyWritePolicy(project: PonyProject, mutation: WritePolicyMutation): Promise; export declare function activeGitOperation(project: PonyProject): Promise<"merge" | "rebase" | null>; export declare function applyRecoveryWritePolicy(project: PonyProject, mutation: WritePolicyMutation): Promise; export {}; //# sourceMappingURL=write-policy.d.ts.map