import { xLuceneTypeConfig } from '@terascope/types'; import BaseType from '../base-type.js'; import { GraphQLType, TypeESMapping, DuckDBTypeConfig } from '../../interfaces.js'; /** * An IPv4 or IPv6 address stored as an Elasticsearch/OpenSearch `ip` field, * enabling CIDR-range queries. * * - **ES/OpenSearch mapping:** `{ type: 'ip' }`. Honors `indexed: false` * (emitted as `index: false`). * - **GraphQL:** `String`. * - **xLucene:** `IP`. * * @example * const config: DataTypeConfig = { * version: 1, * fields: { client_ip: { type: 'IP' } } * }; */ export default class IPType extends BaseType { toESMapping(): TypeESMapping; toGraphQL(): GraphQLType; toXlucene(): xLuceneTypeConfig; /** * The DuckDB column type for this field. * VARCHAR, not INET, because INET needs an extension installed at runtime and is * more lenient than data-mate (it reads `01.02.03.04` as `1.2.3.4`, which data-mate * rejects). Validation stays in data-mate's coercion. */ toDuckDB(): DuckDBTypeConfig; } //# sourceMappingURL=ip.d.ts.map