//#region ../@warlock.js/seal/src/validators/methods/present-methods.d.ts /** * Marker re-exported by the validators barrel so the dts bundler keeps this * module (and its `declare module` augmentation) in the bundled `.d.ts`. */ declare const presentMethodsApplied = true; declare module "../base-validator.mjs" { interface BaseValidator { /** * Field must be present if another field exists */ presentWith(field: string, errorMessage?: string): this; /** * Field must be present if another sibling field exists */ presentWithSibling(field: string, errorMessage?: string): this; /** * Field must be present if another field is missing */ presentWithout(field: string, errorMessage?: string): this; /** * Field must be present if another sibling field is missing */ presentWithoutSibling(field: string, errorMessage?: string): this; /** * Field must be present if another field equals a specific value */ presentIf(field: string, value: any, errorMessage?: string): this; /** * Field must be present if another sibling field equals a specific value */ presentIfSibling(field: string, value: any, errorMessage?: string): this; /** * Field must be present unless another field equals a specific value */ presentUnless(field: string, value: any, errorMessage?: string): this; /** * Field must be present unless another sibling field equals a specific value */ presentUnlessSibling(field: string, value: any, errorMessage?: string): this; /** * Field must be present if another field is empty */ presentIfEmpty(field: string, errorMessage?: string): this; /** * Field must be present if another sibling field is empty */ presentIfEmptySibling(field: string, errorMessage?: string): this; /** * Field must be present if another field is not empty */ presentIfNotEmpty(field: string, errorMessage?: string): this; /** * Field must be present if another sibling field is not empty */ presentIfNotEmptySibling(field: string, errorMessage?: string): this; /** * Field must be present if another field's value is in the given array */ presentIfIn(field: string, values: any[], errorMessage?: string): this; /** * Field must be present if another sibling field's value is in the given array */ presentIfInSibling(field: string, values: any[], errorMessage?: string): this; /** * Field must be present if another field's value is NOT in the given array */ presentIfNotIn(field: string, values: any[], errorMessage?: string): this; /** * Field must be present if another sibling field's value is NOT in the given array */ presentIfNotInSibling(field: string, values: any[], errorMessage?: string): this; /** * Field must be present if all specified fields exist */ presentWithAll(fields: string[], errorMessage?: string): this; /** * Field must be present if all specified sibling fields exist */ presentWithAllSiblings(fields: string[], errorMessage?: string): this; /** * Field must be present if all specified fields are missing */ presentWithoutAll(fields: string[], errorMessage?: string): this; /** * Field must be present if all specified sibling fields are missing */ presentWithoutAllSiblings(fields: string[], errorMessage?: string): this; /** * Field must be present if any of the specified fields exists */ presentWithAny(fields: string[], errorMessage?: string): this; /** * Field must be present if any of the specified sibling fields exists */ presentWithAnySiblings(fields: string[], errorMessage?: string): this; /** * Field must be present if any of the specified fields is missing */ presentWithoutAny(fields: string[], errorMessage?: string): this; /** * Field must be present if any of the specified sibling fields is missing */ presentWithoutAnySiblings(fields: string[], errorMessage?: string): this; } } //# sourceMappingURL=present-methods.d.ts.map //#endregion export { presentMethodsApplied }; //# sourceMappingURL=present-methods.d.mts.map