import { IndexHelperBase } from './IndexHelperBase.js'; /** * Legacy version 1 index helper. It blinds attributes in a single keyed pass * (HMAC over the SHA-256 of each value, namespaced as `{key: value}`), and * combines compound-index components by colon-joining the already-blinded * base64url strings. This matches the original EDV spec blinding procedure. * * This version exists only to read and migrate blinded attributes written by * older clients; its blinding internals MUST stay byte-compatible with legacy * on-disk data and must not be "fixed". The shared, blinding-agnostic machinery * lives in `IndexHelperBase`. */ export declare class LegacyIndexHelperVersion1 extends IndexHelperBase { /** * Blinds a single attribute using the given HMAC API. * * @param {object} options - The options to use. * @param {object} options.hmac - An HMAC API with `id`, `sign`, and `verify` * properties. * @param {string} options.key - A key associated with a value. * @param {any} options.value - The value associated with the key for the * attribute. * * @returns {Promise} - Resolves to an object `{name, value}`. */ _blindAttribute({ hmac, key, value }: any): Promise<{ name: string; value: string; }>; /** * Builds a blind compound attribute from an array of blind attributes * via the given HMAC API. * * @param {object} options - The options to use. * @param {object} options.hmac - An HMAC API with `id`, `sign`, and `verify` * properties. * @param {Array} options.blindAttributes - The blind attributes that * comprise the compound index. * @param {number} [options.length=options.blindAttributes.length] - The * number of blind attributes to go into the compound attribute * (<= `blindAttributes.length`). * * @returns {Promise} - Resolves to the blinded compound attribute. */ _blindCompoundAttribute({ hmac, blindAttributes, length }: any): Promise<{ name: string; value: string; }>; /** * Blinds a string using the given HMAC API. * * @param {object} hmac - An HMAC API with `id`, `sign`, and `verify` * properties. * @param {string} value - The value to blind. * * @returns {Promise} - Resolves to the blinded value. */ _blindString(hmac: any, value: any): Promise; _buildBlindAttributes({ hmac, doc, equal, has }: any): Promise; } //# sourceMappingURL=LegacyIndexHelperVersion1.d.ts.map