/** * Query parameter serialization with type-aware literal formatting. * * Parses {paramName: Type} patterns from query strings and uses * Native format codecs to serialize values to ClickHouse literals. */ import { SQL_NULL } from "./native/codecs.ts"; export { SQL_NULL }; /** * Extract parameter types from a query string. * Matches {name: Type} patterns, skipping strings and comments. */ export declare function extractParamTypes(query: string): Map; /** * Serialize query parameters to ClickHouse literal strings. * * Parses the query to extract parameter types, then uses Native format * codecs to serialize each value with proper type-aware formatting. * * @param query - SQL query with {name: Type} parameter placeholders * @param params - Parameter values to serialize * @returns Serialized parameters as string values * * @example * serializeParams( * "SELECT {ids: Array(UInt64)}, {point: Tuple(Int32, String)}", * { ids: [1, 2, 3], point: [10, 'hello'] } * ) * // => { ids: '[1, 2, 3]', point: "(10, 'hello')" } */ export declare function serializeParams(query: string, params: Record): Record; //# sourceMappingURL=params.d.ts.map