import type { ConstraintOptions } from '#koala/validator/constraint'; import type { FieldSchema } from '#koala/validator/schema'; import type { Violation } from '#koala/validator/violation'; export type ConstraintContext = ConstraintOptions> = { path: string; root: unknown; value: unknown; constraint: string; options: TOptions; runNestedRules: (value: unknown, schema: FieldSchema, path: string) => Violation[]; }; export type ConstraintValidator = ConstraintOptions> = (value: unknown, context: ConstraintContext) => Violation[]; //# sourceMappingURL=constraint-validator.d.ts.map