/** * Helpers for building filter expressions from structured tool parameters. * * Several APIs take a query language in a URL parameter — Socrata SoQL * `$where` (CDC, BTS) and OData `$filter` (OpenFEMA). Values interpolated * into those expressions must be quoted and escaped, otherwise an apostrophe * ("Prince George's") produces a syntax error or changes the filter. * * Only use these for values from structured parameters. Tools that accept a * raw expression from the caller (e.g. cdc_query `where`, fema_query `filter`) * pass it through unchanged by design. */ /** SoQL string literal: `O'Brien` → `'O''Brien'`. */ export declare function soqlString(value: string | number): string; /** SoQL substring pattern for LIKE: `Coeur d'Alene` → `'%Coeur d''Alene%'`. */ export declare function soqlContains(value: string): string; /** OData string literal: `Prince George's` → `'Prince George''s'`. */ export declare function odataString(value: string | number): string; /** An integer for use in a filter expression; throws on anything else. */ export declare function integerValue(value: unknown, name: string): number; /** An ISO date or datetime (YYYY-MM[-DD][Thh:mm[:ss[.fff]]][Z]) for a filter expression; throws otherwise. */ export declare function isoDateValue(value: string, name: string): string; //# sourceMappingURL=query-escape.d.ts.map