import { z } from "zod"; //#region src/translation-task-control.d.ts declare const BATCH_TRANSLATION_ERROR_KINDS: readonly ["timeout", "memory-limit", "runtime", "abort"]; type BatchTranslationErrorKind = (typeof BATCH_TRANSLATION_ERROR_KINDS)[number]; interface BatchTranslationError { kind: BatchTranslationErrorKind; message: string; } interface ControlledTranslationTaskOptions { signal?: AbortSignal; timeoutMs?: number; } type ControlledTranslationTaskResult = { ok: true; value: T; } | { ok: false; error: BatchTranslationError; }; declare function runControlledTranslationTask(task: (signal: AbortSignal) => Promise, options?: ControlledTranslationTaskOptions): Promise>; declare function normalizeBatchTranslationError(error: unknown, parentSignal?: AbortSignal): BatchTranslationError; declare function isBatchTranslationAbort(error: BatchTranslationError, signal: AbortSignal | undefined): boolean; //#endregion //#region src/translator.d.ts declare const TRANSLATOR_CONTRACT_VERSION = 3; declare const TRANSLATION_ENGINE_IDS: readonly ["browser", "local", "local-ct2", "local-llama", "openai"]; declare const TranslationEngineIdSchema: z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>; type TranslationEngineId = z.infer; declare const DEFAULT_TRANSLATION_ENGINE_ID: TranslationEngineId; declare function isManagedLocalTranslationEngineId(engineId: TranslationEngineId | null | undefined): engineId is Extract; declare function isDirectionalManagedLocalTranslationEngineId(engineId: TranslationEngineId | null | undefined): engineId is Extract; type ManagedLocalTranslationEngineId = Extract; declare const SERVICE_TRANSLATION_ENGINE_IDS: readonly ["local", "local-ct2", "local-llama", "openai"]; declare const ServiceTranslationEngineIdSchema: z.ZodEnum<["local", "local-ct2", "local-llama", "openai"]>; type ServiceTranslationEngineId = z.infer; declare const DEFAULT_BATCH_TRANSLATION_TIMEOUT_MS = 15000; interface TranslatorOptions { instructions?: string; context?: string; signal?: AbortSignal; timeoutMs?: number; } interface BatchTranslationResult { index: number; output?: string; error?: BatchTranslationError; } interface Translator { batchTranslate(inputs: string[], options?: TranslatorOptions): AsyncGenerator; destroy?(): void; } interface TranslatorCreateMonitor { setStatus(input: { message: string; progress?: number; }): void; } interface TranslatorPrepareMonitor { setStatus(input: { message: string; progress?: number; }): void; } interface TranslationModelSearchInput { engineId: ServiceTranslationEngineId; requestId?: string; query?: string; sourceLanguage?: string; targetLanguage?: string; limit?: number; cursor?: string; } type TranslationModelSearchPhase = 'candidates' | 'enriched' | 'complete' | 'error'; interface TranslationDownloadFilePlan { path: string; sizeBytes?: number; required: boolean; etag?: string; revision?: string; sourceUrl?: string; raw?: unknown; } interface TranslationDownloadGroupPlan { id: string; label: string; description?: string; profile?: string; dtype?: string; estimatedTotalBytes?: number; baseGroupId?: string; commitHash?: string; shortCommitHash?: string; rootDir?: string; status?: LocalModelDownloadStatus; progress?: number; bytesDownloaded?: number; totalBytes?: number; resumable?: boolean; error?: string; selectable: boolean; selected: boolean; files: TranslationDownloadFilePlan[]; } interface TranslationModelDownloadPlan { modelId: string; estimatedTotalBytes?: number; files: TranslationDownloadFilePlan[]; selectedGroupId?: string; groups?: TranslationDownloadGroupPlan[]; } interface TranslationModelCandidate { id: string; label: string; summary: string; downloads: number; likes: number; trendingScore?: number; lastModified?: string; pipelineTag?: string; tags: string[]; compatibility: { transformersJs: boolean; onnx: boolean; localRuntimeVerified: boolean; }; size: { estimatedTotalBytes?: number; primaryBytes?: number; }; downloadGroups?: TranslationDownloadGroupPlan[]; languageMatch: { sourceMatched: boolean; targetMatched: boolean; directionalScore: number; }; } interface TranslationModelSearchResult { items: TranslationModelCandidate[]; nextCursor?: string; } interface TranslationModelSearchEvent { requestId: string; phase: TranslationModelSearchPhase; items?: TranslationModelCandidate[]; nextCursor?: string; message?: string; } declare const LocalModelDownloadStatusSchema: z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>; type LocalModelDownloadStatus = z.infer; declare const TranslationDownloadFilePlanSchema: z.ZodObject<{ path: z.ZodString; sizeBytes: z.ZodOptional; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>; declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional; profile: z.ZodOptional; dtype: z.ZodOptional; estimatedTotalBytes: z.ZodOptional; baseGroupId: z.ZodOptional; commitHash: z.ZodOptional; shortCommitHash: z.ZodOptional; rootDir: z.ZodOptional; status: z.ZodOptional>; progress: z.ZodOptional; bytesDownloaded: z.ZodOptional; totalBytes: z.ZodOptional; resumable: z.ZodOptional; error: z.ZodOptional; selectable: z.ZodBoolean; selected: z.ZodBoolean; files: z.ZodArray; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }, { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }>; declare const LocalModelProfileStatusSchema: z.ZodEnum<["idle", "loading", "ready", "error"]>; type LocalModelProfileStatus = z.infer; declare const LocalModelProfileManifestFileSchema: z.ZodObject<{ path: z.ZodString; sizeBytes: z.ZodOptional; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>; type LocalModelProfileManifestFile = z.infer; declare const LocalModelProfileManifestGroupSchema: z.ZodObject<{ id: z.ZodString; baseGroupId: z.ZodString; label: z.ZodString; displayLabel: z.ZodString; description: z.ZodOptional; profile: z.ZodOptional; dtype: z.ZodOptional; commitHash: z.ZodString; shortCommitHash: z.ZodString; rootDir: z.ZodString; estimatedTotalBytes: z.ZodOptional; selectable: z.ZodBoolean; files: z.ZodArray; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; label: string; baseGroupId: string; commitHash: string; shortCommitHash: string; rootDir: string; selectable: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; displayLabel: string; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; }, { id: string; label: string; baseGroupId: string; commitHash: string; shortCommitHash: string; rootDir: string; selectable: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; displayLabel: string; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; }>; type LocalModelProfileManifestGroup = z.infer; declare const LocalModelProfileManifestSchema: z.ZodObject<{ modelId: z.ZodString; source: z.ZodLiteral<"huggingface">; endpoint: z.ZodDefault; revision: z.ZodString; commitHash: z.ZodString; shortCommitHash: z.ZodString; fetchedAt: z.ZodNumber; updatedAt: z.ZodNumber; raw: z.ZodOptional; groups: z.ZodDefault; profile: z.ZodOptional; dtype: z.ZodOptional; commitHash: z.ZodString; shortCommitHash: z.ZodString; rootDir: z.ZodString; estimatedTotalBytes: z.ZodOptional; selectable: z.ZodBoolean; files: z.ZodArray; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; label: string; baseGroupId: string; commitHash: string; shortCommitHash: string; rootDir: string; selectable: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; displayLabel: string; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; }, { id: string; label: string; baseGroupId: string; commitHash: string; shortCommitHash: string; rootDir: string; selectable: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; displayLabel: string; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; }>>>; groupOrder: z.ZodDefault>; }, "strip", z.ZodTypeAny, { revision: string; commitHash: string; shortCommitHash: string; modelId: string; source: "huggingface"; endpoint: string; fetchedAt: number; updatedAt: number; groups: Record; groupOrder: string[]; raw?: unknown; }, { revision: string; commitHash: string; shortCommitHash: string; modelId: string; source: "huggingface"; fetchedAt: number; updatedAt: number; raw?: unknown; endpoint?: string | undefined; groups?: Record | undefined; groupOrder?: string[] | undefined; }>; type LocalModelProfileManifest = z.infer; declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{ path: z.ZodString; sizeBytes: z.ZodOptional; downloadedBytes: z.ZodOptional; required: z.ZodDefault; status: z.ZodDefault>; updatedAt: z.ZodOptional; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; required: boolean; error?: string | undefined; sizeBytes?: number | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }, { path: string; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; sizeBytes?: number | undefined; required?: boolean | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }>; type LocalModelLifecycleFileState = z.infer; declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{ groupId: z.ZodString; baseGroupId: z.ZodOptional; status: z.ZodDefault>; rootDir: z.ZodOptional; bytesDownloaded: z.ZodOptional; totalBytes: z.ZodOptional; progress: z.ZodOptional; resumable: z.ZodDefault; error: z.ZodOptional; installedAt: z.ZodOptional; updatedAt: z.ZodOptional; files: z.ZodDefault; downloadedBytes: z.ZodOptional; required: z.ZodDefault; status: z.ZodDefault>; updatedAt: z.ZodOptional; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; required: boolean; error?: string | undefined; sizeBytes?: number | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }, { path: string; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; sizeBytes?: number | undefined; required?: boolean | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; resumable: boolean; files: { path: string; status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; required: boolean; error?: string | undefined; sizeBytes?: number | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }[]; groupId: string; error?: string | undefined; baseGroupId?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; updatedAt?: number | undefined; installedAt?: number | undefined; }, { groupId: string; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; baseGroupId?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; files?: { path: string; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; sizeBytes?: number | undefined; required?: boolean | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }[] | undefined; updatedAt?: number | undefined; installedAt?: number | undefined; }>; type LocalModelLifecycleGroupState = z.infer; declare const LocalModelProfileLoadStateSchema: z.ZodObject<{ status: z.ZodDefault>; message: z.ZodOptional; error: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "error" | "idle" | "loading" | "ready"; message?: string | undefined; error?: string | undefined; updatedAt?: number | undefined; }, { message?: string | undefined; status?: "error" | "idle" | "loading" | "ready" | undefined; error?: string | undefined; updatedAt?: number | undefined; }>; type LocalModelProfileLoadState = z.infer; declare const LocalModelAssetLogSchema: z.ZodObject<{ engineId: z.ZodEnum<["local", "local-ct2", "local-llama"]>; modelId: z.ZodString; selectedGroupId: z.ZodOptional; groupId: z.ZodOptional; status: z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>; message: z.ZodString; progress: z.ZodOptional; bytesDownloaded: z.ZodOptional; totalBytes: z.ZodOptional; sessionId: z.ZodOptional; resumable: z.ZodOptional; files: z.ZodOptional; downloadedBytes: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; sizeBytes?: number | undefined; downloadedBytes?: number | undefined; }, { path: string; sizeBytes?: number | undefined; downloadedBytes?: number | undefined; }>, "many">>; updatedAt: z.ZodNumber; }, "strip", z.ZodTypeAny, { message: string; status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; engineId: "local" | "local-ct2" | "local-llama"; modelId: string; updatedAt: number; selectedGroupId?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; files?: { path: string; sizeBytes?: number | undefined; downloadedBytes?: number | undefined; }[] | undefined; groupId?: string | undefined; sessionId?: string | undefined; }, { message: string; status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; engineId: "local" | "local-ct2" | "local-llama"; modelId: string; updatedAt: number; selectedGroupId?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; files?: { path: string; sizeBytes?: number | undefined; downloadedBytes?: number | undefined; }[] | undefined; groupId?: string | undefined; sessionId?: string | undefined; }>; type LocalModelAssetLog = z.infer; declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{ modelId: z.ZodString; estimatedTotalBytes: z.ZodOptional; files: z.ZodArray; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>, "many">; profile: z.ZodOptional; selectedGroupId: z.ZodOptional; groups: z.ZodOptional; profile: z.ZodOptional; dtype: z.ZodOptional; estimatedTotalBytes: z.ZodOptional; baseGroupId: z.ZodOptional; commitHash: z.ZodOptional; shortCommitHash: z.ZodOptional; rootDir: z.ZodOptional; status: z.ZodOptional>; progress: z.ZodOptional; bytesDownloaded: z.ZodOptional; totalBytes: z.ZodOptional; resumable: z.ZodOptional; error: z.ZodOptional; selectable: z.ZodBoolean; selected: z.ZodBoolean; files: z.ZodArray; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }, { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; modelId: string; selectedGroupId?: string | undefined; profile?: string | undefined; estimatedTotalBytes?: number | undefined; groups?: { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }[] | undefined; }, { files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; modelId: string; selectedGroupId?: string | undefined; profile?: string | undefined; estimatedTotalBytes?: number | undefined; groups?: { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }[] | undefined; }>; type LocalModelAssetPlanSnapshot = z.infer; declare const LocalModelAssetStateSchema: z.ZodObject<{ modelId: z.ZodString; version: z.ZodDefault>; status: z.ZodDefault>; selected: z.ZodDefault; selectedGroupId: z.ZodOptional; installedAt: z.ZodOptional; updatedAt: z.ZodOptional; bytesDownloaded: z.ZodOptional; totalBytes: z.ZodOptional; progress: z.ZodOptional; resumable: z.ZodDefault; error: z.ZodOptional; profileLoad: z.ZodDefault>; message: z.ZodOptional; error: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "error" | "idle" | "loading" | "ready"; message?: string | undefined; error?: string | undefined; updatedAt?: number | undefined; }, { message?: string | undefined; status?: "error" | "idle" | "loading" | "ready" | undefined; error?: string | undefined; updatedAt?: number | undefined; }>>; profileManifest: z.ZodOptional; endpoint: z.ZodDefault; revision: z.ZodString; commitHash: z.ZodString; shortCommitHash: z.ZodString; fetchedAt: z.ZodNumber; updatedAt: z.ZodNumber; raw: z.ZodOptional; groups: z.ZodDefault; profile: z.ZodOptional; dtype: z.ZodOptional; commitHash: z.ZodString; shortCommitHash: z.ZodString; rootDir: z.ZodString; estimatedTotalBytes: z.ZodOptional; selectable: z.ZodBoolean; files: z.ZodArray; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; label: string; baseGroupId: string; commitHash: string; shortCommitHash: string; rootDir: string; selectable: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; displayLabel: string; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; }, { id: string; label: string; baseGroupId: string; commitHash: string; shortCommitHash: string; rootDir: string; selectable: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; displayLabel: string; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; }>>>; groupOrder: z.ZodDefault>; }, "strip", z.ZodTypeAny, { revision: string; commitHash: string; shortCommitHash: string; modelId: string; source: "huggingface"; endpoint: string; fetchedAt: number; updatedAt: number; groups: Record; groupOrder: string[]; raw?: unknown; }, { revision: string; commitHash: string; shortCommitHash: string; modelId: string; source: "huggingface"; fetchedAt: number; updatedAt: number; raw?: unknown; endpoint?: string | undefined; groups?: Record | undefined; groupOrder?: string[] | undefined; }>>; groupsState: z.ZodDefault; status: z.ZodDefault>; rootDir: z.ZodOptional; bytesDownloaded: z.ZodOptional; totalBytes: z.ZodOptional; progress: z.ZodOptional; resumable: z.ZodDefault; error: z.ZodOptional; installedAt: z.ZodOptional; updatedAt: z.ZodOptional; files: z.ZodDefault; downloadedBytes: z.ZodOptional; required: z.ZodDefault; status: z.ZodDefault>; updatedAt: z.ZodOptional; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; required: boolean; error?: string | undefined; sizeBytes?: number | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }, { path: string; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; sizeBytes?: number | undefined; required?: boolean | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; resumable: boolean; files: { path: string; status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; required: boolean; error?: string | undefined; sizeBytes?: number | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }[]; groupId: string; error?: string | undefined; baseGroupId?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; updatedAt?: number | undefined; installedAt?: number | undefined; }, { groupId: string; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; baseGroupId?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; files?: { path: string; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; sizeBytes?: number | undefined; required?: boolean | undefined; updatedAt?: number | undefined; downloadedBytes?: number | undefined; }[] | undefined; updatedAt?: number | undefined; installedAt?: number | undefined; }>>>; plan: z.ZodOptional; files: z.ZodArray; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>, "many">; profile: z.ZodOptional; selectedGroupId: z.ZodOptional; groups: z.ZodOptional; profile: z.ZodOptional; dtype: z.ZodOptional; estimatedTotalBytes: z.ZodOptional; baseGroupId: z.ZodOptional; commitHash: z.ZodOptional; shortCommitHash: z.ZodOptional; rootDir: z.ZodOptional; status: z.ZodOptional>; progress: z.ZodOptional; bytesDownloaded: z.ZodOptional; totalBytes: z.ZodOptional; resumable: z.ZodOptional; error: z.ZodOptional; selectable: z.ZodBoolean; selected: z.ZodBoolean; files: z.ZodArray; required: z.ZodBoolean; etag: z.ZodOptional; revision: z.ZodOptional; sourceUrl: z.ZodOptional; raw: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }, { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }, { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; modelId: string; selectedGroupId?: string | undefined; profile?: string | undefined; estimatedTotalBytes?: number | undefined; groups?: { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }[] | undefined; }, { files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; modelId: string; selectedGroupId?: string | undefined; profile?: string | undefined; estimatedTotalBytes?: number | undefined; groups?: { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }[] | undefined; }>>; files: z.ZodDefault; downloadedBytes: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; sizeBytes?: number | undefined; downloadedBytes?: number | undefined; }, { path: string; sizeBytes?: number | undefined; downloadedBytes?: number | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting"; version: 2; resumable: boolean; selected: boolean; files: { path: string; sizeBytes?: number | undefined; downloadedBytes?: number | undefined; }[]; modelId: string; profileLoad: { status: "error" | "idle" | "loading" | "ready"; message?: string | undefined; error?: string | undefined; updatedAt?: number | undefined; }; groupsState: Record; error?: string | undefined; selectedGroupId?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; updatedAt?: number | undefined; installedAt?: number | undefined; profileManifest?: { revision: string; commitHash: string; shortCommitHash: string; modelId: string; source: "huggingface"; endpoint: string; fetchedAt: number; updatedAt: number; groups: Record; groupOrder: string[]; raw?: unknown; } | undefined; plan?: { files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; modelId: string; selectedGroupId?: string | undefined; profile?: string | undefined; estimatedTotalBytes?: number | undefined; groups?: { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }[] | undefined; } | undefined; }, { modelId: string; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; version?: 2 | undefined; error?: string | undefined; selectedGroupId?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; selected?: boolean | undefined; files?: { path: string; sizeBytes?: number | undefined; downloadedBytes?: number | undefined; }[] | undefined; updatedAt?: number | undefined; installedAt?: number | undefined; profileLoad?: { message?: string | undefined; status?: "error" | "idle" | "loading" | "ready" | undefined; error?: string | undefined; updatedAt?: number | undefined; } | undefined; profileManifest?: { revision: string; commitHash: string; shortCommitHash: string; modelId: string; source: "huggingface"; fetchedAt: number; updatedAt: number; raw?: unknown; endpoint?: string | undefined; groups?: Record | undefined; groupOrder?: string[] | undefined; } | undefined; groupsState?: Record | undefined; plan?: { files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; modelId: string; selectedGroupId?: string | undefined; profile?: string | undefined; estimatedTotalBytes?: number | undefined; groups?: { id: string; label: string; selectable: boolean; selected: boolean; files: { path: string; required: boolean; revision?: string | undefined; sizeBytes?: number | undefined; etag?: string | undefined; sourceUrl?: string | undefined; raw?: unknown; }[]; status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined; error?: string | undefined; description?: string | undefined; profile?: string | undefined; dtype?: string | undefined; estimatedTotalBytes?: number | undefined; baseGroupId?: string | undefined; commitHash?: string | undefined; shortCommitHash?: string | undefined; rootDir?: string | undefined; progress?: number | undefined; bytesDownloaded?: number | undefined; totalBytes?: number | undefined; resumable?: boolean | undefined; }[] | undefined; } | undefined; }>; type LocalModelAssetState = z.infer; declare const ManagedLocalCatalogSourceSchema: z.ZodEnum<["local", "network", "recommended"]>; type ManagedLocalCatalogSource = z.infer; interface LocalModelCatalogItem extends TranslationModelCandidate { asset: LocalModelAssetState; selectable: boolean; local: boolean; primarySource: ManagedLocalCatalogSource; sources: ManagedLocalCatalogSource[]; } interface LocalModelCatalogResult { items: LocalModelCatalogItem[]; nextCursor?: string; } interface LocalModelCatalogSearchEvent { requestId: string; phase: TranslationModelSearchPhase; items?: LocalModelCatalogItem[]; nextCursor?: string; message?: string; } interface LocalModelCatalogLocalResult { items: LocalModelCatalogItem[]; } interface TranslatorFactoryPrepareOptions extends TranslatorFactoryCreateOptions { monitor?: TranslatorPrepareMonitor; } interface TranslatorFactoryCreateOptions { sourceLanguage: string; targetLanguage: string; model?: string; dtype?: string; runtimeConfig?: Record; signal?: AbortSignal; monitor?: TranslatorCreateMonitor; } interface TranslatorFactory { prepare?(options: TranslatorFactoryPrepareOptions): Promise; create(options: TranslatorFactoryCreateOptions): Promise; } type TranslationEngineDependencyState = 'installed' | 'installing' | 'missing' | 'error' | 'not-applicable'; declare const TranslationEngineDependencyStateSchema: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>; type TranslationEngineRuntimeState = 'ready' | 'probing' | 'failed' | 'error' | 'not-applicable'; declare const TranslationEngineRuntimeStateSchema: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>; type TranslationEngineAssetState = 'ready' | 'missing' | 'downloading' | 'error' | 'not-applicable'; declare const TranslationEngineAssetStateSchema: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>; interface TranslationEngineDependencyStatus { state: TranslationEngineDependencyState; message?: string; progress?: number; error?: string; } declare const TranslationEngineDependencyStatusSchema: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; interface TranslationEngineRuntimeStatus { state: TranslationEngineRuntimeState; message?: string; progress?: number; error?: string; } declare const TranslationEngineRuntimeStatusSchema: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; interface TranslationEngineAssetStatus { state: TranslationEngineAssetState; message?: string; progress?: number; error?: string; } declare const TranslationEngineAssetStatusSchema: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; interface TranslationEngineLifecycleStatus { dependency: TranslationEngineDependencyStatus; runtime: TranslationEngineRuntimeStatus; assets: TranslationEngineAssetStatus; summary?: string; } declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{ dependency: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; runtime: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; assets: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; summary: z.ZodOptional; }, "strip", z.ZodTypeAny, { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }, { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }>; declare function createTranslationEngineLifecycleStatus(input?: Partial & { dependency?: Partial; runtime?: Partial; assets?: Partial; }): TranslationEngineLifecycleStatus; declare function isTranslationEngineDependencyReady(status: TranslationEngineLifecycleStatus): boolean; declare function isTranslationEngineRuntimeReady(status: TranslationEngineLifecycleStatus): boolean; declare function shouldShowTranslationEngineInstallGate(status: TranslationEngineLifecycleStatus | null | undefined): boolean; declare function getTranslationEngineLifecycleMessage(status: TranslationEngineLifecycleStatus | null | undefined): string | undefined; declare const TranslationEngineInstallLogStreamSchema: z.ZodEnum<["stdout", "stderr"]>; type TranslationEngineInstallLogStream = z.infer; interface TranslationEngineInstallLogEvent { stream: TranslationEngineInstallLogStream; text: string; } declare const TranslationEngineInstallLogEventSchema: z.ZodObject<{ stream: z.ZodEnum<["stdout", "stderr"]>; text: z.ZodString; }, "strip", z.ZodTypeAny, { stream: "stdout" | "stderr"; text: string; }, { stream: "stdout" | "stderr"; text: string; }>; interface TranslationEngineLifecycleStatusEvent { type: 'status'; lifecycle: TranslationEngineLifecycleStatus; } interface TranslationEngineLifecycleLogEvent { type: 'log'; stream: TranslationEngineInstallLogStream; text: string; } interface TranslationEngineLifecycleExitEvent { type: 'exit'; lifecycle: TranslationEngineLifecycleStatus; } type TranslationEngineLifecycleEvent = TranslationEngineLifecycleStatusEvent | TranslationEngineLifecycleLogEvent | TranslationEngineLifecycleExitEvent; declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"status">; lifecycle: z.ZodObject<{ dependency: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; runtime: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; assets: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; summary: z.ZodOptional; }, "strip", z.ZodTypeAny, { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }, { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "status"; lifecycle: { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }; }, { type: "status"; lifecycle: { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"log">; stream: z.ZodEnum<["stdout", "stderr"]>; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "log"; stream: "stdout" | "stderr"; text: string; }, { type: "log"; stream: "stdout" | "stderr"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"exit">; lifecycle: z.ZodObject<{ dependency: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; runtime: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; assets: z.ZodObject<{ message: z.ZodOptional; progress: z.ZodOptional; error: z.ZodOptional; } & { state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>; }, "strip", z.ZodTypeAny, { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }, { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }>; summary: z.ZodOptional; }, "strip", z.ZodTypeAny, { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }, { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "exit"; lifecycle: { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }; }, { type: "exit"; lifecycle: { dependency: { state: "error" | "installed" | "installing" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; runtime: { state: "error" | "ready" | "not-applicable" | "probing" | "failed"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; assets: { state: "error" | "downloading" | "ready" | "missing" | "not-applicable"; message?: string | undefined; error?: string | undefined; progress?: number | undefined; }; summary?: string | undefined; }; }>]>; interface TranslationEngineLifecycleContext { projectDir: string; globalSettings: TranslationEngineGlobalSettings; signal?: AbortSignal; onLifecycle?: (status: TranslationEngineLifecycleStatus) => void; onLog?: (event: TranslationEngineInstallLogEvent) => void; } interface TranslationEngineLifecycleController { detectLifecycle(input: TranslationEngineLifecycleContext): Promise; install(input: TranslationEngineLifecycleContext): Promise; } type TranslationEngineRuntime = 'browser' | 'server'; type TranslationEngineKind = 'browser' | 'managed-local' | 'remote-provider'; type TranslationEngineSettingsKey = 'local' | 'localCt2' | 'localLlama' | 'openai'; interface TranslationEngineManifest { id: TranslationEngineId; label: string; description: string; technicalSummary: string; runtime: TranslationEngineRuntime; kind: TranslationEngineKind; settingsKey?: TranslationEngineSettingsKey; defaultModel?: string; runtimePackageName?: string; installDescription?: string; modelLabel?: string; downloadGroupsLabel?: string; refreshTooltip?: string; moduleName?: string; factoryExport?: string; } declare const TRANSLATION_ENGINE_MANIFESTS: readonly [{ readonly id: "browser"; readonly label: "Browser"; readonly description: "Uses the browser Translator API and future browser-side providers."; readonly technicalSummary: "Browser-native Web Translator adapter. Package payload is about 5 KB; browser language packs are managed by the browser."; readonly runtime: "browser"; readonly kind: "browser"; readonly installDescription: "Browser translation support is built into the browser runtime."; readonly moduleName: "@openspecui/browser-translator"; readonly factoryExport: "createBrowserTranslatorFactory"; }, { readonly id: "local"; readonly label: "Local-Transformers"; readonly description: "Runs an ONNX Runtime-backed local translation adapter through Transformers.js with managed ONNX model files."; readonly technicalSummary: "Server-side ONNX Runtime adapter via Transformers.js. Runtime package is installed on demand; selected ONNX model groups are downloaded separately and can range from tens to hundreds of MB."; readonly runtime: "server"; readonly kind: "managed-local"; readonly settingsKey: "local"; readonly defaultModel: "Xenova/nllb-200-distilled-600M"; readonly runtimePackageName: "@huggingface/transformers"; readonly installDescription: "Install the Local-Transformers runtime package to enable server-side translation."; readonly modelLabel: "Local Model"; readonly downloadGroupsLabel: "Local download profiles"; readonly refreshTooltip: "Refresh local model profiles"; readonly moduleName: "@openspecui/local-translator"; readonly factoryExport: "createLocalTranslatorFactory"; }, { readonly id: "local-ct2"; readonly label: "Local-CT2"; readonly description: "Runs a bundled local CTranslate2 translation runtime with managed model files."; readonly technicalSummary: "Server-side native CTranslate2 adapter. Runtime package is installed on demand; selected model artifacts are downloaded separately and can range from tens to hundreds of MB."; readonly runtime: "server"; readonly kind: "managed-local"; readonly settingsKey: "localCt2"; readonly defaultModel: "ooeoeo/opus-mt-en-zh-ct2-float16"; readonly runtimePackageName: "ctranslate2"; readonly installDescription: "Install the Local-CT2 runtime package to enable server-side translation."; readonly modelLabel: "CT2 Model"; readonly downloadGroupsLabel: "Local CT2 download groups"; readonly refreshTooltip: "Refresh local model artifacts"; readonly moduleName: "@openspecui/local-ct2-translator"; readonly factoryExport: "createLocalCt2TranslatorFactory"; }, { readonly id: "local-llama"; readonly label: "Local-Llama"; readonly description: "Runs a local GGUF translation-capable LLM through node-llama-cpp with managed GGUF model files."; readonly technicalSummary: "Server-side llama.cpp adapter via node-llama-cpp. Runtime package is installed on demand; selected GGUF model files are downloaded separately and can range from hundreds of MB to multiple GB."; readonly runtime: "server"; readonly kind: "managed-local"; readonly settingsKey: "localLlama"; readonly defaultModel: "bartowski/Qwen2.5-0.5B-Instruct-GGUF"; readonly runtimePackageName: "node-llama-cpp"; readonly installDescription: "Install the Local-Llama runtime package to enable server-side GGUF translation."; readonly modelLabel: "Llama Model"; readonly downloadGroupsLabel: "Local GGUF files"; readonly refreshTooltip: "Refresh local GGUF artifacts"; readonly moduleName: "@openspecui/local-llama-translator"; readonly factoryExport: "createLocalLlamaTranslatorFactory"; }, { readonly id: "openai"; readonly label: "OpenAI-Completion"; readonly description: "Uses an OpenAI-compatible TanStack AI completion provider for context-aware translation."; readonly technicalSummary: "Server-side TanStack AI adapter for OpenAI-compatible APIs. Package payload is about 5 KB; model size stays with the remote provider."; readonly runtime: "server"; readonly kind: "remote-provider"; readonly settingsKey: "openai"; readonly defaultModel: "gpt-4.1-mini"; readonly installDescription: "OpenAI completion translation is bundled with the server runtime."; readonly moduleName: "@openspecui/openai-completion-translator"; readonly factoryExport: "createOpenAICompletionTranslatorFactory"; }]; declare function getTranslationEngineManifest(engineId: TranslationEngineId): TranslationEngineManifest; declare function getManagedLocalTranslationEngineManifest(engineId: ManagedLocalTranslationEngineId): TranslationEngineManifest & { kind: 'managed-local'; settingsKey: Extract; defaultModel: string; runtimePackageName: string; installDescription: string; modelLabel: string; downloadGroupsLabel: string; refreshTooltip: string; }; declare const TranslationOpenAISettingsSchema: z.ZodObject<{ baseUrl: z.ZodDefault; token: z.ZodDefault; model: z.ZodDefault; }, "strip", z.ZodTypeAny, { model: string; baseUrl: string; token: string; }, { model?: string | undefined; baseUrl?: string | undefined; token?: string | undefined; }>; declare const TranslationOpenAISettingsUpdateSchema: z.ZodObject<{ baseUrl: z.ZodOptional; token: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { model?: string | undefined; baseUrl?: string | undefined; token?: string | undefined; }, { model?: string | undefined; baseUrl?: string | undefined; token?: string | undefined; }>; type TranslationOpenAISettings = z.infer; declare const TranslationLocalSettingsSchema: z.ZodObject<{ model: z.ZodDefault; selectedGroupId: z.ZodOptional; hfEndpoint: z.ZodDefault; memoryBudgetPercent: z.ZodDefault; }, "strip", z.ZodTypeAny, { model: string; hfEndpoint: string; memoryBudgetPercent: number; selectedGroupId?: string | undefined; }, { model?: string | undefined; selectedGroupId?: string | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>; declare const TranslationLocalSettingsUpdateSchema: z.ZodObject<{ model: z.ZodOptional; selectedGroupId: z.ZodOptional>; hfEndpoint: z.ZodOptional; memoryBudgetPercent: z.ZodOptional; }, "strip", z.ZodTypeAny, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>; type TranslationLocalSettings = z.infer; declare const TranslationLocalCt2SettingsSchema: z.ZodObject<{ model: z.ZodDefault; selectedGroupId: z.ZodOptional; hfEndpoint: z.ZodDefault; memoryBudgetPercent: z.ZodDefault; }, "strip", z.ZodTypeAny, { model: string; hfEndpoint: string; memoryBudgetPercent: number; selectedGroupId?: string | undefined; }, { model?: string | undefined; selectedGroupId?: string | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>; declare const TranslationLocalCt2SettingsUpdateSchema: z.ZodObject<{ model: z.ZodOptional; selectedGroupId: z.ZodOptional>; hfEndpoint: z.ZodOptional; memoryBudgetPercent: z.ZodOptional; }, "strip", z.ZodTypeAny, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>; type TranslationLocalCt2Settings = z.infer; declare const TranslationLocalLlamaSettingsSchema: z.ZodObject<{ model: z.ZodDefault; selectedGroupId: z.ZodOptional; hfEndpoint: z.ZodDefault; memoryBudgetPercent: z.ZodDefault; }, "strip", z.ZodTypeAny, { model: string; hfEndpoint: string; memoryBudgetPercent: number; selectedGroupId?: string | undefined; }, { model?: string | undefined; selectedGroupId?: string | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>; declare const TranslationLocalLlamaSettingsUpdateSchema: z.ZodObject<{ model: z.ZodOptional; selectedGroupId: z.ZodOptional>; hfEndpoint: z.ZodOptional; memoryBudgetPercent: z.ZodOptional; }, "strip", z.ZodTypeAny, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>; type TranslationLocalLlamaSettings = z.infer; declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{ engineId: z.ZodDefault>; openai: z.ZodDefault; token: z.ZodDefault; model: z.ZodDefault; }, "strip", z.ZodTypeAny, { model: string; baseUrl: string; token: string; }, { model?: string | undefined; baseUrl?: string | undefined; token?: string | undefined; }>>; local: z.ZodDefault; selectedGroupId: z.ZodOptional; hfEndpoint: z.ZodDefault; memoryBudgetPercent: z.ZodDefault; }, "strip", z.ZodTypeAny, { model: string; hfEndpoint: string; memoryBudgetPercent: number; selectedGroupId?: string | undefined; }, { model?: string | undefined; selectedGroupId?: string | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>>; localCt2: z.ZodDefault; selectedGroupId: z.ZodOptional; hfEndpoint: z.ZodDefault; memoryBudgetPercent: z.ZodDefault; }, "strip", z.ZodTypeAny, { model: string; hfEndpoint: string; memoryBudgetPercent: number; selectedGroupId?: string | undefined; }, { model?: string | undefined; selectedGroupId?: string | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>>; localLlama: z.ZodDefault; selectedGroupId: z.ZodOptional; hfEndpoint: z.ZodDefault; memoryBudgetPercent: z.ZodDefault; }, "strip", z.ZodTypeAny, { model: string; hfEndpoint: string; memoryBudgetPercent: number; selectedGroupId?: string | undefined; }, { model?: string | undefined; selectedGroupId?: string | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { local: { model: string; hfEndpoint: string; memoryBudgetPercent: number; selectedGroupId?: string | undefined; }; localCt2: { model: string; hfEndpoint: string; memoryBudgetPercent: number; selectedGroupId?: string | undefined; }; localLlama: { model: string; hfEndpoint: string; memoryBudgetPercent: number; selectedGroupId?: string | undefined; }; openai: { model: string; baseUrl: string; token: string; }; engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama"; }, { local?: { model?: string | undefined; selectedGroupId?: string | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; } | undefined; localCt2?: { model?: string | undefined; selectedGroupId?: string | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; } | undefined; localLlama?: { model?: string | undefined; selectedGroupId?: string | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; } | undefined; openai?: { model?: string | undefined; baseUrl?: string | undefined; token?: string | undefined; } | undefined; engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined; }>; declare const TranslationEngineGlobalSettingsUpdateSchema: z.ZodObject<{ engineId: z.ZodOptional>; openai: z.ZodOptional; token: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { model?: string | undefined; baseUrl?: string | undefined; token?: string | undefined; }, { model?: string | undefined; baseUrl?: string | undefined; token?: string | undefined; }>>; local: z.ZodOptional; selectedGroupId: z.ZodOptional>; hfEndpoint: z.ZodOptional; memoryBudgetPercent: z.ZodOptional; }, "strip", z.ZodTypeAny, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>>; localCt2: z.ZodOptional; selectedGroupId: z.ZodOptional>; hfEndpoint: z.ZodOptional; memoryBudgetPercent: z.ZodOptional; }, "strip", z.ZodTypeAny, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>>; localLlama: z.ZodOptional; selectedGroupId: z.ZodOptional>; hfEndpoint: z.ZodOptional; memoryBudgetPercent: z.ZodOptional; }, "strip", z.ZodTypeAny, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }, { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { local?: { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; } | undefined; localCt2?: { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; } | undefined; localLlama?: { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; } | undefined; openai?: { model?: string | undefined; baseUrl?: string | undefined; token?: string | undefined; } | undefined; engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined; }, { local?: { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; } | undefined; localCt2?: { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; } | undefined; localLlama?: { model?: string | undefined; selectedGroupId?: string | null | undefined; hfEndpoint?: string | undefined; memoryBudgetPercent?: number | undefined; } | undefined; openai?: { model?: string | undefined; baseUrl?: string | undefined; token?: string | undefined; } | undefined; engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined; }>; type TranslationEngineGlobalSettings = z.infer; type TranslationEngineGlobalSettingsUpdate = { engineId?: TranslationEngineId; openai?: Partial; local?: Partial> & { selectedGroupId?: TranslationLocalSettings['selectedGroupId'] | null; }; localCt2?: Partial> & { selectedGroupId?: TranslationLocalCt2Settings['selectedGroupId'] | null; }; localLlama?: Partial> & { selectedGroupId?: TranslationLocalLlamaSettings['selectedGroupId'] | null; }; }; declare const BatchTranslateInputSchema: z.ZodObject<{ engineId: z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>; sourceLanguage: z.ZodString; targetLanguage: z.ZodString; model: z.ZodOptional; selectedGroupId: z.ZodOptional; inputs: z.ZodArray; instructions: z.ZodOptional; context: z.ZodOptional; timeoutMs: z.ZodDefault; }, "strip", z.ZodTypeAny, { targetLanguage: string; engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama"; sourceLanguage: string; inputs: string[]; timeoutMs: number; model?: string | undefined; selectedGroupId?: string | undefined; instructions?: string | undefined; context?: string | undefined; }, { targetLanguage: string; engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama"; sourceLanguage: string; inputs: string[]; model?: string | undefined; selectedGroupId?: string | undefined; instructions?: string | undefined; context?: string | undefined; timeoutMs?: number | undefined; }>; type BatchTranslateInput = z.infer; declare const BatchTranslateEventSchema: z.ZodObject<{ index: z.ZodNumber; output: z.ZodOptional; error: z.ZodOptional; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; kind: "runtime" | "timeout" | "memory-limit" | "abort"; }, { message: string; kind: "runtime" | "timeout" | "memory-limit" | "abort"; }>>; }, "strip", z.ZodTypeAny, { index: number; error?: { message: string; kind: "runtime" | "timeout" | "memory-limit" | "abort"; } | undefined; output?: string | undefined; }, { index: number; error?: { message: string; kind: "runtime" | "timeout" | "memory-limit" | "abort"; } | undefined; output?: string | undefined; }>; type BatchTranslateEvent = z.infer; //#endregion export { TranslationEngineDependencyStatus as $, createTranslationEngineLifecycleStatus as $t, LocalModelProfileManifestGroupSchema as A, TranslationLocalCt2SettingsUpdateSchema as At, TRANSLATION_ENGINE_IDS as B, TranslationModelSearchInput as Bt, LocalModelLifecycleGroupStateSchema as C, TranslationEngineRuntimeState as Ct, LocalModelProfileManifestFile as D, TranslationEngineSettingsKey as Dt, LocalModelProfileManifest as E, TranslationEngineRuntimeStatusSchema as Et, ManagedLocalCatalogSourceSchema as F, TranslationLocalSettingsSchema as Ft, TranslationDownloadGroupPlan as G, TranslationOpenAISettingsUpdateSchema as Gt, TRANSLATOR_CONTRACT_VERSION as H, TranslationModelSearchResult as Ht, ManagedLocalTranslationEngineId as I, TranslationLocalSettingsUpdateSchema as It, TranslationEngineAssetStateSchema as J, TranslatorFactory as Jt, TranslationDownloadGroupPlanSchema as K, Translator as Kt, SERVICE_TRANSLATION_ENGINE_IDS as L, TranslationModelCandidate as Lt, LocalModelProfileStatus as M, TranslationLocalLlamaSettingsSchema as Mt, LocalModelProfileStatusSchema as N, TranslationLocalLlamaSettingsUpdateSchema as Nt, LocalModelProfileManifestFileSchema as O, TranslationLocalCt2Settings as Ot, ManagedLocalCatalogSource as P, TranslationLocalSettings as Pt, TranslationEngineDependencyStateSchema as Q, TranslatorPrepareMonitor as Qt, ServiceTranslationEngineId as R, TranslationModelDownloadPlan as Rt, LocalModelLifecycleGroupState as S, TranslationEngineRuntime as St, LocalModelProfileLoadStateSchema as T, TranslationEngineRuntimeStatus as Tt, TranslationDownloadFilePlan as U, TranslationOpenAISettings as Ut, TRANSLATION_ENGINE_MANIFESTS as V, TranslationModelSearchPhase as Vt, TranslationDownloadFilePlanSchema as W, TranslationOpenAISettingsSchema as Wt, TranslationEngineAssetStatusSchema as X, TranslatorFactoryPrepareOptions as Xt, TranslationEngineAssetStatus as Y, TranslatorFactoryCreateOptions as Yt, TranslationEngineDependencyState as Z, TranslatorOptions as Zt, LocalModelCatalogSearchEvent as _, TranslationEngineLifecycleLogEvent as _t, BatchTranslationResult as a, isTranslationEngineDependencyReady as an, TranslationEngineId as at, LocalModelLifecycleFileState as b, TranslationEngineLifecycleStatusSchema as bt, LocalModelAssetLog as c, BatchTranslationError as cn, TranslationEngineInstallLogEventSchema as ct, LocalModelAssetPlanSnapshotSchema as d, normalizeBatchTranslationError as dn, TranslationEngineKind as dt, getManagedLocalTranslationEngineManifest as en, TranslationEngineDependencyStatusSchema as et, LocalModelAssetState as f, runControlledTranslationTask as fn, TranslationEngineLifecycleContext as ft, LocalModelCatalogResult as g, TranslationEngineLifecycleExitEvent as gt, LocalModelCatalogLocalResult as h, TranslationEngineLifecycleEventSchema as ht, BatchTranslateInputSchema as i, isManagedLocalTranslationEngineId as in, TranslationEngineGlobalSettingsUpdateSchema as it, LocalModelProfileManifestSchema as j, TranslationLocalLlamaSettings as jt, LocalModelProfileManifestGroup as k, TranslationLocalCt2SettingsSchema as kt, LocalModelAssetLogSchema as l, BatchTranslationErrorKind as ln, TranslationEngineInstallLogStream as lt, LocalModelCatalogItem as m, TranslationEngineLifecycleEvent as mt, BatchTranslateEventSchema as n, getTranslationEngineManifest as nn, TranslationEngineGlobalSettingsSchema as nt, DEFAULT_BATCH_TRANSLATION_TIMEOUT_MS as o, isTranslationEngineRuntimeReady as on, TranslationEngineIdSchema as ot, LocalModelAssetStateSchema as p, TranslationEngineLifecycleController as pt, TranslationEngineAssetState as q, TranslatorCreateMonitor as qt, BatchTranslateInput as r, isDirectionalManagedLocalTranslationEngineId as rn, TranslationEngineGlobalSettingsUpdate as rt, DEFAULT_TRANSLATION_ENGINE_ID as s, shouldShowTranslationEngineInstallGate as sn, TranslationEngineInstallLogEvent as st, BatchTranslateEvent as t, getTranslationEngineLifecycleMessage as tn, TranslationEngineGlobalSettings as tt, LocalModelAssetPlanSnapshot as u, isBatchTranslationAbort as un, TranslationEngineInstallLogStreamSchema as ut, LocalModelDownloadStatus as v, TranslationEngineLifecycleStatus as vt, LocalModelProfileLoadState as w, TranslationEngineRuntimeStateSchema as wt, LocalModelLifecycleFileStateSchema as x, TranslationEngineManifest as xt, LocalModelDownloadStatusSchema as y, TranslationEngineLifecycleStatusEvent as yt, ServiceTranslationEngineIdSchema as z, TranslationModelSearchEvent as zt };