import { CompareOptions } from '../query/builder/types.cjs';
import { OrderByDirection } from '../query/ir.cjs';
import { IndexInterface, IndexOperation, IndexStats } from './base-index.cjs';
import { RangeQueryOptions } from './btree-index.cjs';
export declare class ReverseIndex<TKey extends string | number> implements IndexInterface<TKey> {
    private originalIndex;
    constructor(index: IndexInterface<TKey>);
    lookup(operation: IndexOperation, value: any): Set<TKey>;
    rangeQuery(options?: RangeQueryOptions): Set<TKey>;
    rangeQueryReversed(options?: RangeQueryOptions): Set<TKey>;
    take(n: number, from: any, filterFn?: (key: TKey) => boolean): Array<TKey>;
    takeFromStart(n: number, filterFn?: (key: TKey) => boolean): Array<TKey>;
    takeReversed(n: number, from: any, filterFn?: (key: TKey) => boolean): Array<TKey>;
    takeReversedFromEnd(n: number, filterFn?: (key: TKey) => boolean): Array<TKey>;
    get orderedEntriesArray(): Array<[any, Set<TKey>]>;
    get orderedEntriesArrayReversed(): Array<[any, Set<TKey>]>;
    supports(operation: IndexOperation): boolean;
    matchesField(fieldPath: Array<string>): boolean;
    matchesCompareOptions(compareOptions: CompareOptions): boolean;
    matchesDirection(direction: OrderByDirection): boolean;
    getStats(): IndexStats;
    add(key: TKey, item: any): void;
    remove(key: TKey, item: any): void;
    update(key: TKey, oldItem: any, newItem: any): void;
    build(entries: Iterable<[TKey, any]>): void;
    clear(): void;
    get keyCount(): number;
    equalityLookup(value: any): Set<TKey>;
    inArrayLookup(values: Array<any>): Set<TKey>;
    get indexedKeysSet(): Set<TKey>;
    get valueMapData(): Map<any, Set<TKey>>;
}
