import * as i0 from "@angular/core"; export declare class FilterQueryService { private readonly keyToShortMap; private readonly shortToKeyMap; private readonly defaultShortKeys; constructor(); registerKeys(keys: Record): void; registerKey(longKey: string, shortKey: string): void; /** * Encodes a query object into a URL-safe string by transforming its keys * and converting it to a JSON string. * * @param {Record} query - The query object to encode. * * @example * // Example query object * const query = { * // Predicate field (payload sent) * 'locRef:boxCode': { * value: '1', * operator: 'LIKE', * }, * * // Aggregation field (query parameter) * 'locRef:boxCode': [1] * }; * * const encodedQuery = encodeQuery(query); * console.log(encodedQuery); // Encoded string representation * * @returns {string} - The URL-encoded JSON string representation of the query object. */ encodeQuery(query: Record): string; /** * Decodes a URL-encoded query string back into its original object form. * * @param {string} encodedQuery - The URL-encoded JSON string representation of a query. * * @example * const encodedQuery = "%7B%22locRef%3AboxCode%22%3A%7B%22value%22%3A%221%22%2C%22operator%22%3A%22LIKE%22%7D%7D"; * const decodedQuery = decodeQuery(encodedQuery); * console.log(decodedQuery); * Output: * { * 'locRef:boxCode': { * value: '1', * operator: 'LIKE' * } * } * * @returns {Record | null} - The decoded query object, or `null` if decoding fails. */ decodeQuery(encodedQuery: string): Record | null; private initializeDefaultKeys; private transformObject; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }