import { PathBuilder, type PathBuilderLike } from "path-ts"; import type { BaseFetchOptions, FetchSummary } from "#tools/fetch/download"; import { type SnapshotFetchOptions } from "#tools/fetch/storage"; /** * The download link DOT's open-data portal serves for the current NAD release. */ export declare const NAD_RELEASE_URL = "https://data.transportation.gov/download/fc2s-wawr/application%2Fx-zip-compressed"; /** * The archive is a current download under `outRoot`, and each release's Parquet * file a snapshot under `snapshots`. */ export interface FetchNADOptions extends BaseFetchOptions, Pick { /** * The release archive's download link. * * @defaultValue {@linkcode NAD_RELEASE_URL} */ nadURL?: string; } /** * The release a text member's name states, as the vintage: `TXT_NAD_r24.txt` is `r24`. * * @throws When the name states no `r` release. */ export declare function nadReleaseVintage(member: string): string; /** * The newest release Parquet file {@link fetchNAD} wrote, such as * `usgov-nad/r24/TXT_NAD_r24.parquet` under the snapshot root. * * @param snapshotDirectory The directory holding the source's vintages. * @defaultValue `snapshotSourceDirectory("usgov-nad")` * @throws When no release vintage holds a Parquet file, or the newest holds * more than one, naming each one found. */ export declare function nadReleaseParquetPath(snapshotDirectory?: PathBuilderLike): Promise; /** * Downloads the release archive, extracts its text, and converts it to Parquet sorted by state and county. * * Each step keeps its output when the step before it is unchanged. * An archive whose manifest records the same URL and whose hash still matches isn't downloaded again. * * A Parquet file whose record holds the archive's hash and member is kept, * and the text is then never extracted. * * The extracted text, 42 GB for release 24, is removed once its Parquet file is written. * An interrupted download resumes from its `.part` file when the host honors * byte ranges, and starts over when it doesn't. */ export declare function fetchNAD(options: FetchNADOptions, report?: (line: string) => void): Promise; //# sourceMappingURL=nad.d.ts.map