import type { PathBuilderLike } from "path-ts"; /** * What a conversion read and wrote, kept beside the Parquet file. */ export interface NADParquetRecord { /** * The hash of the archive the text came from. * A conversion is current while this matches. */ sourceSHA256: string; member: string; rows: number; rowsByState: Record; sortedBy: string[]; writtenAt: string; } /** * The record of a Parquet file converted from `member` of the archive hashed `sourceSHA256`. * * Returns `null` when the Parquet file or its record is absent, or when the * record states another archive or member. */ export declare function readCurrentNADParquetRecord(parquetPath: PathBuilderLike, sourceSHA256: string, member: string): Promise; /** * Converts one extracted NAD text file to sorted Parquet, or keeps the existing file * when its record holds the same archive hash. * * Every column is read as text, so ZIP Codes and house numbers keep their leading zeros. * The sort runs on DuckDB's default threads, and the write runs on one thread, * because a multi-threaded `COPY` moves row-group boundaries between runs. * * @throws When the text lacks a column the sort reads. */ export declare function convertNADToParquet(options: { textPath: PathBuilderLike; parquetPath: PathBuilderLike; sourceSHA256: string; member: string; report?: (line: string) => void; }): Promise<{ record: NADParquetRecord; converted: boolean; }>; //# sourceMappingURL=parquet.d.ts.map