import type { PathBuilderLike } from "path-ts"; import { SoilReadingKind } from "#index"; import type { SoilDataAccessClient } from "#sdk/client"; /** * One comparison row for a point. * It records both verdicts and whether they agree. */ export interface SoilAgreementRow { label: string; latitude: number; longitude: number; /** * The map unit the artifact's own geometry puts here. */ localMukey: string | null; /** * The map unit Soil Data Access puts here. */ serviceMukey: string | null; result: "agree" | "disagree" | "boundary_tolerance"; /** * Meters from the point to the nearest edge of the delineation the artifact matched. * * Included on every row because it separates a real defect from two channels * rendering the same edge differently. */ nearestEdgeMetres: number | null; } /** * The negative half: a point the authority's published surveys do not reach. */ export interface SoilOutsideRow { label: string; latitude: number; longitude: number; kind: SoilReadingKind; /** * True when the artifact answered `unknown`, the only acceptable reading outside the built survey areas. */ passed: boolean; } export interface VerifySoilResult { agreement: SoilAgreementRow[]; agreed: number; disagreed: number; boundaryTolerance: number; outside: SoilOutsideRow[]; outsidePassed: number; } /** * Points outside the pilot region. * * Every neighboring state is included because a footprint clipped to "the * Midwest" would pass a one-state check. */ export declare const OUTSIDE_PILOT_POINTS: ReadonlyArray<{ label: string; latitude: number; longitude: number; }>; export interface VerifySoilOptions { databasePath: PathBuilderLike; client: Pick; /** * Points to re-ask the service about, sampled from the artifact — see {@link sampleAgreementPoints}. */ points: ReadonlyArray<{ label: string; latitude: number; longitude: number; }>; outsidePoints?: ReadonlyArray<{ label: string; latitude: number; longitude: number; }>; onProgress?: (message: string) => void; } /** * Run both halves. */ export declare function verifySoilDatabase(options: VerifySoilOptions): Promise; /** * Draw a reproducible sample of points from the artifact, a deterministic stride * over the primary key so a re-run compares the same points. */ export declare function sampleAgreementPoints(databasePath: PathBuilderLike, options?: { count?: number; }): Array<{ label: string; latitude: number; longitude: number; }>; //# sourceMappingURL=verify.d.ts.map