function required<TValue, TPathKind extends PathKind = PathKind.Root>( path: SchemaPath<TValue, 1, TPathKind>, config?: | (BaseValidatorConfig<TValue, TPathKind> & { when?: NoInfer<LogicFn<TValue, boolean, TPathKind>> | undefined; }) | undefined,): void;