import { AddressNLComponentSchema } from '@open-formulieren/types'; import { GetValidationSchema } from '../types'; export declare const DEFAULT_POSTCODE_REGEX: RegExp; export declare const HOUSE_NUMBER_REGEX: RegExp; /** * Build the (client-side) validation schema for the address NL data. * * Because this is a composite, the validation logic is a bit different from what we're * used to. * * A required addressNL component means that: * * - the postcode field is required * - the house number field is required * * since these are the minimal atoms that allow you to resolve an address. * * House letter and house number addition are always optional, because not every address * has those. * * When address derivation is enabled, the street name and city fields become visible * and they're either auto populated, or due to an error manually filled in by the user. * This makes the fields mandatory (!). * * Furthermore (this applies to optional address NL fields), you must either provide * both the postcode and houser number, or none at all, as partial data does not make * sense. Here too, if address derivation is enabled, filling out one field requires * that city and street name are populated too. */ declare const getValidationSchema: GetValidationSchema; export default getValidationSchema;