import type { FieldVec3, MeshDistanceField } from '@forgeax/engine-types'; /** Combined indirection and f32 payload budget, independent of virtual volume size. */ export declare const MAX_DISTANCE_FIELD_BYTES: number; /** First lattice sample of brick `index`; bricks hold 4^3 samples in x-fastest order. */ export declare function fieldBrickStart(dimensions: FieldVec3, index: number): FieldVec3; /** Lane holding brick sample (i, j, k): the sample itself inside the volume, the clamped edge sample in padding. */ export declare function fieldBrickLane(dimensions: FieldVec3, start: FieldVec3, i: number, j: number, k: number): number; /** * Build-time storage; full word comparison resolves hash collisions, including signed zero. * Producers write in-volume lanes only: `store` replicates edge samples into padded lanes. */ export declare class FieldBrickBuilder { readonly bricks: Uint32Array; private readonly dimensions; private values; private words; private used; private readonly chains; constructor(dimensions: FieldVec3); store(index: number, values: Float32Array): boolean; finish(): Pick; } /** Exact lattice sample; callers use validated dimensions and coordinates. */ export declare function distanceFieldTexel(field: Pick, x: number, y: number, z: number): number; /** Geometric fields keep their exact dense computation, then publish the same brick contract. */ export declare function brickDistanceFieldValues(dimensions: FieldVec3, values: Float32Array): Pick | null; /** Validate addresses, exact edge padding and the logical negative-sample count. */ export declare function fieldBrickNegativeSamples(field: MeshDistanceField): number | null; //# sourceMappingURL=distance-field-bricks.d.ts.map