import 'graphile-build'; import 'graphile-build-pg'; import 'graphile-connection-filter'; import type { ConnectionFilterOperatorFactory } from 'graphile-connection-filter'; import '../types'; /** * Creates the PostGIS ST_DWithin (withinDistance) operator factory. * * ST_DWithin is special among PostGIS spatial operators because it takes * THREE arguments: (geom1, geom2, distance) instead of the standard two. * This requires a compound GraphQL input type (geometry + distance) rather * than just a geometry value. * * For geography columns, distance is in meters. * For geometry columns, distance is in the SRID's coordinate units. * * @example * ```graphql * query { * restaurants(where: { * location: { * withinDistance: { * point: { type: "Point", coordinates: [-73.99, 40.73] } * distance: 5000 * } * } * }) { * nodes { name } * } * } * ``` */ export declare function createWithinDistanceOperatorFactory(): ConnectionFilterOperatorFactory;