import type { PathBuilderLike } from "path-ts"; /** * What {@link openConstituentCountryReader} answered for one postcode. */ export interface ConstituentCountryAnswer { /** * The English name of the country holding most of the postcode's UPRNs, such as `Wales`. * * Null when the register assigns no UPRN to the postcode. */ name: string | null; /** * Whether the postcode's UPRNs lie in more than one constituent country. */ straddles: boolean; } /** * Opens `nsul.db` and returns a reader from a GB postcode to its constituent country. * * The reader holds the database open for the life of the process, as a corpus build reads millions of rows. */ export declare function openConstituentCountryReader(databasePath?: PathBuilderLike): (postcode: string) => ConstituentCountryAnswer; //# sourceMappingURL=constituent-country.d.ts.map