import { AlignmentPlan, FingerprintedBlock } from "./types.js"; //#region src/docReview/rebuildDocument.d.ts /** * A block that needs to be translated or re-translated by an external consumer * (an AI client, a human, or an agent). */ export type SegmentToReview = { /** The base block to translate. */ baseBlock: FingerprintedBlock; /** Existing target translation, or `null` when the block is new. */ targetBlockText: string | null; /** Index of the originating action within {@link AlignmentPlan.actions}. */ actionIndex: number; }; export type RebuildInput = { baseBlocks: FingerprintedBlock[]; targetBlocks: FingerprintedBlock[]; plan: AlignmentPlan; }; export type RebuildResult = { segmentsToReview: SegmentToReview[]; }; /** * Analyze the alignment plan and return only the segments that need * review/translation. Does not generate output text - that is done by * {@link mergeReviewedSegments} once the translations are available. * * @param input - The base/target blocks and the alignment plan. * @returns The list of segments that require translation. */ export declare const identifySegmentsToReview: ({ baseBlocks, targetBlocks, plan }: RebuildInput) => RebuildResult; /** * Merge reviewed translations back into the final document following the * alignment plan, reusing untouched target blocks as-is. * * @param plan - The alignment plan. * @param targetBlocks - Blocks of the existing target document. * @param reviewedSegments - Map of action index to its reviewed translation. * @returns The rebuilt target document. */ export declare const mergeReviewedSegments: (plan: AlignmentPlan, targetBlocks: FingerprintedBlock[], reviewedSegments: Map) => string; //#endregion //# sourceMappingURL=rebuildDocument.d.ts.map