import { a as idempotencyKey, c as FieldOutcome, d as LocaleResult, f as SourceTextProvider, h as TranslationWorker, i as createTranslationWorker, l as GetEntityTranslationStatusArgs, m as TranslateEntityArgs, n as TRANSLATION_SWEEP_JOB, o as EntityTranslationResult, p as StaleUnit, r as TranslationWorkerEnv, s as EntityTranslationStatus, t as CreateTranslationWorkerDeps, u as GetEntityTranslationStatusForArgs } from "./worker-BUxSTxJm.js";
import { I18nContentSchema } from "@platform-modules/i18n-content";
import { Querier } from "@platform-modules/db";
//#region src/errors.d.ts
declare class I18nTranslatorError extends Error {
  readonly code: string;
  readonly name: string;
  readonly _tag: "I18nTranslatorError";
  constructor(code: string, message: string);
}
declare class UnknownLocaleError extends I18nTranslatorError {
  readonly locale: string;
  readonly code: 'UNKNOWN_LOCALE';
  readonly name = "UnknownLocaleError";
  constructor(locale: string);
}
declare class SourceUnavailableError extends I18nTranslatorError {
  readonly entityType: string;
  readonly entityId: string;
  readonly code: 'SOURCE_UNAVAILABLE';
  readonly name = "SourceUnavailableError";
  constructor(entityType: string, entityId: string);
}
declare class NoAdaptersConfiguredError extends I18nTranslatorError {
  readonly code: 'NO_ADAPTERS_CONFIGURED';
  readonly name = "NoAdaptersConfiguredError";
  constructor();
}
declare function isI18nTranslatorError(e: unknown): e is I18nTranslatorError;
declare function isUnknownLocaleError(e: unknown): e is UnknownLocaleError;
declare function isSourceUnavailableError(e: unknown): e is SourceUnavailableError;
declare function isNoAdaptersConfiguredError(e: unknown): e is NoAdaptersConfiguredError;
//#endregion
//#region src/hash.d.ts
declare function hashSource(text: string): Promise<string>;
//#endregion
//#region src/translate.d.ts
declare function translateEntity(q: Querier<I18nContentSchema>, args: TranslateEntityArgs): Promise<EntityTranslationResult>;
//#endregion
//#region src/rollup.d.ts
/**
 * Returns the aggregate translation status for a single entity.
 *
 * @remarks
 * Ownership scoping is the caller's responsibility — the entityId must already
 * be authorised for the calling tenant/user. No tenantId filter is applied here
 * because the translationValue schema does not carry a tenant column; entity-level
 * access control is enforced upstream by the caller.
 */
declare function getEntityTranslationStatus(q: Querier<I18nContentSchema>, args: GetEntityTranslationStatusArgs): Promise<EntityTranslationStatus>;
/**
 * Returns the aggregate translation status for a batch of entities.
 *
 * @remarks
 * Ownership scoping is the caller's responsibility — all entityIds must already
 * be authorised for the calling tenant/user. No tenantId filter is applied here
 * because the translationValue schema does not carry a tenant column; entity-level
 * access control is enforced upstream by the caller.
 */
declare function getEntityTranslationStatusFor(q: Querier<I18nContentSchema>, args: GetEntityTranslationStatusForArgs): Promise<Map<string, EntityTranslationStatus>>;
//#endregion
export { type CreateTranslationWorkerDeps, type EntityTranslationResult, type EntityTranslationStatus, type FieldOutcome, type GetEntityTranslationStatusArgs, type GetEntityTranslationStatusForArgs, I18nTranslatorError, type LocaleResult, NoAdaptersConfiguredError, type SourceTextProvider, SourceUnavailableError, type StaleUnit, TRANSLATION_SWEEP_JOB, type TranslateEntityArgs, type TranslationWorker, type TranslationWorkerEnv, UnknownLocaleError, createTranslationWorker, getEntityTranslationStatus, getEntityTranslationStatusFor, hashSource, idempotencyKey, isI18nTranslatorError, isNoAdaptersConfiguredError, isSourceUnavailableError, isUnknownLocaleError, translateEntity };