import type { CanonicalRow } from "#types"; /** * Whether a designator value states that the address has no number. * * The whole value has to be the token. * A value that holds more, such as Gipuzkoa's `S/N-A`, `S/N-C` and `S/N-5`, * states something further and is kept as the publisher wrote it: what the trailing part * designates isn't established, dropping it would merge several addresses of one building, * and rewriting it would state a number the publisher didn't. */ export declare function isSinNumero(value: string): boolean; /** * The house number a Spanish cadastre states, or null where it states that there's none. * * @param types The publisher's own designator types, in the caller's order of precedence. * The Dirección General del Catastro writes the type as the element text `1`, while Navarra * and Gipuzkoa write the `LocatorDesignatorTypeValue/addressIdentifierGeneral` codelist URI. */ export declare function spanishHouseNumber(byType: ReadonlyMap, ...types: readonly string[]): string | null; /** * Whether a component reference's key states that the publisher holds no value for that component. * * A Spanish cadastre's feature identifier is a dotted path whose last segment is the value: * the Cadastre's postal descriptors in Ceuta are `ES.SDGC.PD.55.101.51001` through * `…51005`, and Gipuzkoa's are `ES.GFA.PD.056.20830`. * Where the cadastre holds no postcode it writes the same identifier with that segment empty, * `ES.SDGC.PD.55.101.` and `ES.GFA.PD.059.`, against no feature of that id. * * Those truncated references are the only unresolvable ones measured in either file. * A reader taking every unresolved reference as an absence would also swallow a broken join, * so the two are separated here and every other unresolved reference raises. */ export declare function referenceStatesNoValue(key: string): boolean; /** * What a cadastre's reader has read from one address, before it becomes a row. * * Each of the four readers resolves these from a different file layout, and `cadastralRow` turns any * of them into the same row, so the layout stays in the adapter and the row shape has one home. */ export interface CadastralAddress { /** * The thoroughfare name the address references, absent where the publisher writes none. */ street: string | null; /** * The house number this cadastre's own designator type states. */ house: string | null; /** * The postal descriptor's code. */ postcode: string | null; /** * The municipality-level administrative unit's name. */ locality: string | null; /** * The address-area name. * It is a settlement within the municipality. */ settlement: string | null; /** * The publisher's own identifier for the address. * It keys `source_id` where it exists. */ addressID: string | null; } /** * What distinguishes one cadastre's rows from another's. * * The license differs per publisher, so it is passed rather than derived: Gipuzkoa's register * entry elects `CC-BY-SA-4.0` where the other three elect no share-alike obligation. */ export interface CadastralSource { adapterID: string; license: string; } /** * One canonical row from what a Spanish cadastre states about one address. * * All four cadastres publish the INSPIRE Addresses theme, so they agree on how an * address becomes a row even though each writes a different file layout. * The municipality supplies the locality. * * The address area supplies a dependent locality only where the two differ. * The line renders in Spain's order. * * Each adapter would otherwise repeat those 42 lines four times. * * Returns `null` in two cases. * The address holds neither a municipality nor an address area, so the row would have no locality. * * Otherwise `formatAddressRow` returns `null` for the components it was given. */ export declare function cadastralRow(address: CadastralAddress, source: CadastralSource): CanonicalRow | null; //# sourceMappingURL=cadastre.d.ts.map