import { type StructureRecord, type StructureSource } from "#structures/source"; /** * The source directory the fetcher writes. */ export declare const TW_CHUNGHWA_POST_SOURCE_ID = "tw-chunghwa-post-offices"; /** * The file the fetcher writes. */ export declare const TW_CHUNGHWA_POST_FILENAME = "post-offices.csv"; /** * The columns this module reads, in the publisher's spelling. */ export declare const TW_CHUNGHWA_POST_COLUMNS: readonly ["電腦局號", "局名", "郵遞區號", "縣市", "鄉鎮市區", "地址", "經度", "緯度"]; /** * One CSV row, keyed by the publisher's column names. */ export type TWChunghwaPostRow = Readonly>; /** * The street line of an office split into components, or `null` when no house number with * 號 follows a street, or something other than a floor or a note follows the number. */ export declare function chunghwaPostStreetLine(line: string): { street: string; house_number: string; unit?: string; } | null; /** * An office's address as the components the parser labels, or `null` when its street line doesn't split. */ export declare function chunghwaPostAddress(row: TWChunghwaPostRow): StructureRecord["address"]; /** * One CSV row as a structure record, or `null` when it has no office number. */ export declare function chunghwaPostStructureRecord(row: TWChunghwaPostRow, category: string): StructureRecord | null; /** * Chunghwa Post's post offices. */ export declare const chunghwaPostStructures: StructureSource; //# sourceMappingURL=chunghwa-post.d.ts.map