import { SchemaContext } from "./context-types.mjs"; //#region ../@warlock.js/seal/src/types/mutator-types.d.ts /** * Mutator context */ type MutatorContext = { /** Mutator options */options: Options; /** Global validation context */ ctx: SchemaContext; }; /** * Mutator function - transforms data before validation */ type Mutator = (data: any, context?: MutatorContext) => Promise; /** * Contextualized mutator - mutator with runtime context */ type ContextualizedMutator = { /** Mutation function */mutate: Mutator; /** Mutator context */ context: { options: Options; ctx: SchemaContext; }; }; //#endregion export { ContextualizedMutator, Mutator, MutatorContext }; //# sourceMappingURL=mutator-types.d.mts.map