import { ContextualSchemaRule, RuleResult } from "../types/rule-types.mjs"; import { SchemaContext } from "../types/context-types.mjs"; //#region ../@warlock.js/seal/src/helpers/validation-helpers.d.ts declare const VALID_RULE: RuleResult; /** * Resolve a single attribute value through the full translation priority chain: * 1. attributesList[key] — developer direct text override (highest priority) * 2. translatedAttributes[key] — developer explicit translation key * 3. translator(rawValue) — auto-translate the raw value (fallback) * * Use this in rule bodies when you need per-item translation * (e.g. translating each enum value before joining them). * * @example * // Translate each enum value individually then join * const enumList = enumValues * .map(v => resolveTranslation(String(v), String(v), this, context)) * .join(", "); * this.context.translationParams.enumList = enumList; */ declare const resolveTranslation: ({ key, rawValue, rule, context }: { key: string; rawValue: any; rule: ContextualSchemaRule; context: SchemaContext; }) => string; declare const invalidRule: (rule: ContextualSchemaRule, context: SchemaContext) => RuleResult; //#endregion export { VALID_RULE, invalidRule, resolveTranslation }; //# sourceMappingURL=validation-helpers.d.mts.map