import type { PathBuilderLike } from "path-ts"; import { type XLSXCellValue } from "spliterator"; import { type CanonicalRow, type CorpusAdapter } from "#types"; /** * Registry id for this adapter, stamped into every row it emits. */ export declare const RO_RETEA_SCOLARA_ADAPTER_ID = "ro-retea-scolara"; /** * The one jurisdiction this adapter emits. */ export declare const RO_RETEA_SCOLARA_COUNTRIES: readonly string[]; /** * The license data.gov.ro names for the dataset. */ export declare const RO_RETEA_SCOLARA_LICENSE = "CC-BY-4.0"; /** * The credit CC BY 4.0 obliges. */ export declare const RO_RETEA_SCOLARA_ATTRIBUTION = "Ministerul Educa\u021Biei, Re\u021Bea \u0219colar\u0103, via data.gov.ro"; /** * Why a unit didn't become a row. */ export declare const ReteaScolaraRefusal: { /** * The unit states no locality. */ readonly LocalityAbsent: "row:locality-absent"; /** * The unit states neither a street nor a house number, so the locality by itself would be a place name. */ readonly PremiseAbsent: "row:premise-absent"; /** * The components do not render as a Romanian address line. */ readonly Unrenderable: "row:unrenderable"; /** * Another unit already produced this exact row. */ readonly Duplicate: "row:duplicate"; }; export type ReteaScolaraRefusal = (typeof ReteaScolaraRefusal)[keyof typeof ReteaScolaraRefusal]; /** * One unit's fields, keyed by the sheet's header. */ export type ReteaScolaraUnit = Readonly>; export type ReteaScolaraReading = { readonly admitted: CanonicalRow; } | { readonly refused: ReteaScolaraRefusal; }; /** * The house number a `Numar` cell states, or an empty string where it states none. */ export declare function readHouseNumber(value: string): string; /** * Reads one unit into a row or the reason it is refused. */ export declare function readReteaScolaraUnit(unit: ReteaScolaraUnit): ReteaScolaraReading; /** * The sheet's units keyed by its header, skipping the preamble above the row that holds `Strada`. */ export declare function readReteaScolaraUnits(inputPath: PathBuilderLike): AsyncGenerator; export declare function createReteaScolaraAdapter(): CorpusAdapter; /** * The registered `ro-retea-scolara` adapter instance, built by {@linkcode createReteaScolaraAdapter}. */ export declare const reteaScolaraAdapter: CorpusAdapter; //# sourceMappingURL=adapter.d.ts.map