/** * ctx.stats() — spec: "Runtime Context API / Data access". Path-resolved * (via getField, no per-feature copying) aggregation: count/min/max/mean/ * stddev/p50/p95/histogram, matching the documented return shape exactly. */ import type { Shape } from "./ir"; export interface HistogramBin { x0: number; x1: number; count: number; } export interface Stats { count: number; min: number; max: number; mean: number; stddev: number; p50: number; p95: number; histogram: HistogramBin[]; } export declare function computeStats(rows: readonly unknown[], field: string, shape: Shape): Stats; /** * The columnar fast path (spec: "Columnar / GeoArrow Ingestion"): stats * straight off a column's typed array — no row objects, no field lookups, * no materialization. `values` is consumed (sorted in place after copying * non-finite entries out). */ export declare function statsFromColumn(column: ArrayLike): Stats;