/** * @file Answers whether a premise register publishes a street name, for the unit splitter. */ import { type StreetEvidenceScope, type StreetLocalityEvidence } from "@mailwoman/resolver"; import { SQLiteLookup } from "@mailwoman/sqlite/lookup"; import type { PathBuilderLike } from "path-ts"; import type { StreetIndexDatabase } from "#street-index/schema"; /** * Opens the index at `databasePath` once per country asked for, or answers `null` * for every country when no path is given. * * Pass the result to `createUnitSplitter` from `#adapters/street/unit`. */ export declare function streetIndexOpener(databasePath: PathBuilderLike | null | undefined): (country: string) => CorpusStreetIndex | null; /** * The corpus street index for one country. * * A probe with a locality first looks for the name in that locality. * A miss there falls back to the name anywhere in the country, because sources key * one place differently (`NEW YORK` in NPPES, `Manhattan` in TIGER). */ export declare class CorpusStreetIndex extends SQLiteLookup implements StreetLocalityEvidence { #private; readonly countries: ReadonlySet; constructor(databasePath: PathBuilderLike, country: string); hasStreetName(streetSurface: string, scope?: StreetEvidenceScope): boolean; } //# sourceMappingURL=reader.d.ts.map