/******************************************************************************* * Copyright (c) 2026 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse License 1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/epl-v10.html * * Contributors: * Maxprograms - initial API and implementation *******************************************************************************/ import type { Match } from "typesmatch"; import type { XliffSegment, XliffUnit } from "typesxliff"; export interface BatchSegment { unitId: string; segmentId: string; unit: XliffUnit; segment: XliffSegment; toTranslate: boolean; matches: Match[]; } export interface Batch { fileId: string; index: number; segments: BatchSegment[]; } export interface BatchPrompt { batch: Batch; role: string; prompt: string; } export type BatchRequest = BatchPrompt; export interface BatchResult { batch: Batch; engineName: string; model: string; text: string; } export declare function envelopeId(segment: BatchSegment): string;