import type { ParsedGeometry } from "@mailwoman/spatial"; import type { PathBuilderLike } from "path-ts"; import type { SoilComponentTable, SoilMapUnitTable } from "#schema"; import { type DomainMember } from "#sdk/tabular"; /** * The declared domains this layer validates against and stores; `capability_class` * covers `nirrcapcl`, `irrcapcl` and `muaggatt.niccdcd`. */ export declare const STORED_DOMAINS: readonly ["capability_class", "capability_subclass", "farmland_classification", "component_kind", "mapunit_kind", "mapunit_status"]; /** * One survey area's tabular attributes, already joined and validated. */ export interface SurveyAreaAttributes { areasymbol: string; areaname: string; saverest: string; saversion: number | null; surveySourceDate: string | null; surveySourceTitle: string | null; sourceScale: number | null; mappingScale: number | null; /** * The area the authority publishes for this survey area, in acres — * the independent witness the ring-area check compares against. */ areaAcres: number | null; mapUnits: SoilMapUnitTable[]; components: SoilComponentTable[]; domains: DomainMember[]; } /** * Read one survey area's tabular export. * * @throws {Error} When the metadata's use constraints no longer include the * public-information sentence, when a `Choice` column holds a value outside the * authority's own declared domain, or when the export declares no legend row. */ export declare function readSurveyAreaAttributes(tabularDirectory: PathBuilderLike, areaSymbol: string): Promise; /** * What the shipped FGDC metadata records about this survey area's dates and its license. */ export interface FGDCMetadata { /** * The citation's own `pubdate` as an ISO date — the refresh rather than the survey date. */ publicationDate: string; /** * The oldest source citation date in the lineage, as an ISO date or a bare year. */ oldestSourceDate: string | null; oldestSourceTitle: string | null; oldestSourceScale: number | null; } /** * Read the metadata nrcs ships inside the archive. * * @throws {Error} When the metadata has no publication date, or its use constraints * no longer include the public-information sentence. */ export declare function readFGDCMetadata(xml: string, areaSymbol: string): FGDCMetadata; /** * Read the survey area's own outline shapefile as a GeoJSON geometry. * * @throws {Error} When the shapefile holds anything other than exactly one feature. * The function would silently choose which ground the coverage claim describes if it took the first feature. */ export declare function readSurveyAreaOutline(shapefilePath: PathBuilderLike): Promise; //# sourceMappingURL=survey-area.d.ts.map