import type { StreetPlace, UnitSplitter } from "#adapters/street/unit"; /** * A register's second address line as a unit, or `null` when it holds something else. * * Most filled second lines open with a USPS secondary unit designator * (`SUITE 200`, `STE. 4`, `APT 2B`, `DEPARTMENT OF SURGERY`) or a bare number sign (`#200`). * The rest name a recipient, a building or a mail stop (`ATTN: BILLING`, `C/O …`, `MEDICAL OFFICE BUILDING`). * * A caller leaves those out of the row rather than joining them to the street span, * because they belong to neither the street nor the unit. */ export declare function unitLine(line: string): string | null; /** * The address components written on one US street line: a PO box, or a house number, street and unit. */ export type USStreetLineComponents = { po_box: string; } | { house_number?: string; street: string; unit?: string; }; /** * A whole line that's a box designator and an identifier holding a digit * (`PO BOX 846`, `P.O. Box 10240`, `POB 1088`) as the `po_box` component, or `null` for any other line. * * The digit requirement keeps a street such as `BOX ELDER RD` a street. */ export declare function usPOBoxLine(line: string): { po_box: string; } | null; /** * Splits one US street line, as a register writes it, into its address components. * * A whole-line PO box ({@linkcode usPOBoxLine}) becomes `po_box`. * * Any other line takes the house number off its start with `splitStreetLine` * and a secondary unit off its end with the shared unit splitter (`#adapters/street/unit`), * which reads USPS Publication 28's designators from the US codex table. * * @returns `null` for a blank line. */ export declare function splitUSStreetLine(line: string, units: UnitSplitter, place?: Omit): USStreetLineComponents | null; //# sourceMappingURL=street-unit.d.ts.map