import type { ApplyPatchPreview, ApplyPatchPreviewFile, ApplyPatchProgress, ApplyPatchToolDetails, ParsedPatch } from "./types.ts";
export type PatchFileSnapshot = {
    readonly exists: boolean;
    readonly content: string;
    readonly binary?: true;
    readonly bytes?: Uint8Array;
};
export declare function readPatchFileSnapshot(absolutePath: string): Promise<PatchFileSnapshot>;
export declare function buildPatchPreviewFile(input: {
    readonly hunk: ParsedPatch;
    readonly source: PatchFileSnapshot;
    readonly newContent: string;
    readonly moveDestination?: PatchFileSnapshot;
}): ApplyPatchPreviewFile;
export declare function createPatchPreview(cwd: string, hunks: ParsedPatch[]): Promise<ApplyPatchPreview>;
export declare function createPendingPatchUpdate(cwd: string, patchText: string, progress?: ApplyPatchProgress, previewOverride?: ApplyPatchPreview): Promise<{
    text: string;
    details: ApplyPatchToolDetails | undefined;
}>;
//# sourceMappingURL=preview.d.ts.map