import { type CorpusAdapter } from "#types"; import { type USStateInfo } from "#us/fips-state"; /** * Registry id for this adapter. * * Stamped into every row it emits, so a corpus record can be traced back to the dataset it came from. */ export declare const STATE_TX_NOTARIES_ADAPTER_ID = "state-tx-notaries"; /** * License assigned by this source (Public Domain), attached to each row so downstream * consumers inherit the terms rather than having to look them up. */ export declare const STATE_TX_NOTARIES_DEFAULT_LICENSE = "Public Domain"; /** * An address field split into the street text before its city, the city, * its state abbreviation and its ZIP Code. */ export interface TxNotaryAddress { street: string; city: string; state: USStateInfo; zip: string; } /** * Splits a registry `Address` field, such as `"1215 mcmillan DR\nCEDAR hill, TX 75104"`, * at its trailing city, state and ZIP Code, or returns `null` when the state isn't * a US one or no comma-separated city precedes it. * * The registry appends its own `, ST ZIP` to the city a notary typed, and that city * sometimes already ends in the state, a country or the ZIP Code: `Houston, TX, TX 77043`, * `San Antonio TX, TX 78245`, `Godley, Texas 76044, TX 76044`, `Houston TX 77006, US, TX 77006`. * Those repetitions are removed before the city is read, so the city is `Houston` * and the state isn't taken for the city. */ export declare function parseTxNotaryAddress(rawAddress: string): TxNotaryAddress | null; /** * A notary's street text as its first line and the unit lines typed after it. */ export interface TxNotaryStreetLines { line: string; units: string[]; } /** * Splits the street text {@linkcode parseTxNotaryAddress} returns into its first line * and the unit lines typed after it, in their written order. * * Notaries type a suite or department as its own line (`555 N. Carancahua, Suite 620`), * and some type the street line twice (`231 Blanco Dr, 231 Blanco Dr`). * A trailing comma-separated segment that {@linkcode unitLine} reads as a unit joins `units`, * and one that repeats the first line, with or without its house number, is removed. * * The split stops at the first trailing segment that's neither, so the street keeps every segment before it. */ export declare function splitTxNotaryStreetLines(street: string): TxNotaryStreetLines; export declare function createStateTxNotariesAdapter(): CorpusAdapter; /** * The configured adapter instance registered with the corpus builder. */ export declare const stateTxNotariesAdapter: CorpusAdapter; //# sourceMappingURL=adapter.d.ts.map