export interface GridAssignment {
    /** Parallel to the input points array — x,y index for each point. */
    indices: Array<{
        x: number;
        y: number;
    }>;
    /**
     * Integer offset of the grid origin from (0,0) in prober-step units.
     * To map a generated die's (x,y) back to the original prober position:
     *   origX = die.x + offsetX,  origY = die.y + offsetY
     */
    offsetX: number;
    offsetY: number;
    /**
     * 1.0 when all input positions are already integers (typical prober data);
     * lower when positions have significant fractional parts.
     */
    confidence: number;
}
/**
 * Assign grid indices to prober-step grid positions.
 *
 * Input x,y are die grid positions (prober step coordinates — integers in
 * normal use).  The offset is the rounded centroid of all positions so that
 * the generated die grid is centred at the wafer's physical origin (0,0).
 *
 * The offset is always an integer, which ensures that x = inputX − offsetX is
 * also an integer for integer inputs regardless of whether the centroid is
 * a whole number or a half-integer (e.g. even-count symmetric grids).
 */
export declare function assignGridIndices(gridPoints: Array<{
    x: number;
    y: number;
}>): GridAssignment;
//# sourceMappingURL=grid.d.ts.map