/** * @file The address key that joins an Overture row to every other rendering of the same address. * * An Overture row's `source_id` is a hash of its aligned components (`stableSourceID`). * A re-run that adds the region or writes the postcode in another grouping gives the same address a new id, * and the record id the split groups by doesn't hold across the re-run (#3457). * The key reads the postcode, the locality, the house number, the street and the unit, each folded. * It leaves out the region and the country, the two components a re-run adds to some rows and not others. * A postcode keeps only its letters and digits, so `K7K6R2` and `K7K 6R2`, `54420-240` and `54420240` are * one postcode. * * The key's text comes from Overture's own fields. * The adapter writes `street`, `number`, `unit` and `locality` verbatim and regroups only the postcode. */ import { type AddressKeyRow } from "#utils/address-key"; /** * The folded postcode and the house number's digits, the part of the key a column scan can compute. * * @returns null when the row holds neither a postcode nor a locality. * The adapter writes no such row. */ export declare function overtureAddressBlock(row: AddressKeyRow): string | null; /** * {@linkcode overtureAddressBlock} as a DuckDB expression over a corpus file aliased `alias`. * * `lower` and the ASCII class agree with the JavaScript fold for the postcodes * Overture writes in Brazil, Mexico and Canada. * Those hold only ASCII letters, digits, a space and a hyphen. */ export declare function overtureAddressBlockSQL(alias: string): string; /** * The address key of one Overture row, `||||`. * * A row without a house number keys by its street within its postcode and locality. * * @returns null when the row has no street, or neither a postcode nor a locality. */ export declare function overtureAddressKey(row: AddressKeyRow): string | null; //# sourceMappingURL=address-key.d.ts.map