/** * Whether a value is a district, taluk, tehsil, hobli, mandal or post office, * or a census sub-district numbered in Roman numerals, rather than a locality or a street. */ export declare function isINSubProvince(value: string): boolean; /** * Why a line was not labeled. */ export declare const INStreetLineRefusal: { /** * The line is empty once the parts that repeat the locality or the state are removed. */ readonly Empty: "empty"; /** * The line writes a six-digit number: the PIN code, written into the street line. */ readonly PostcodeInLine: "postcode-in-line"; /** * The line holds a district, taluk, tehsil, hobli, mandal or post office. */ readonly SubProvinceInLine: "sub-province-in-line"; /** * A landmark phrase sits inside a part rather than in a part of its own. */ readonly LandmarkInsidePart: "landmark-inside-part"; /** * No part ends in a thoroughfare word. */ readonly NoThoroughfare: "no-thoroughfare"; /** * More than one part before the street remains once designators and the premise number are * removed, or the one that remains isn't a building name (`RS No 514/4`, a village name). */ readonly PremiseUnread: "premise-unread"; /** * The street holds a digit its name doesn't account for, such as a building's number inside it. */ readonly StreetHoldsNumber: "street-holds-number"; /** * More than one part follows the street, or the part that does isn't a name of three letters or more. */ readonly SubLocalityUnread: "sub-locality-unread"; }; export type INStreetLineRefusal = (typeof INStreetLineRefusal)[keyof typeof INStreetLineRefusal]; /** * The parts of an Indian street line, labeled. */ export interface INStreetLineParts { house_number?: string; /** * A building or complex name written before the street, as `Tagore Road Hostel` is in the UPU description. */ venue?: string; street: string; dependent_locality?: string; /** * The count of designator and landmark parts left out. */ omitted: number; } /** * The fields of the record beside the line. * A line may repeat their values. */ export interface INStreetLineContext { locality?: string | null; region?: string | null; } /** * Label the parts of an Indian street line, or return the reason it can't be labeled. */ export declare function segmentINStreetLine(line: string, context?: INStreetLineContext): INStreetLineParts | { refused: INStreetLineRefusal; }; //# sourceMappingURL=segment.d.ts.map