import { Repository } from './repository'; export declare class Index { constructor(repository: Repository, name: string); private _repository; private _name; readonly repository: Repository; readonly name: string; count(): Promise; /** * Fetch the record which has a matching value for the current index. * @param key */ get(key: any): Promise; /** * Fetch the primary key of the record which has a matching value for the current index. * @param key */ getKey(key: any): Promise; cursor(range: any): AsyncIterable; /** * Get a cursor across the keys in the index * TODO: does this provide the primary key or the key within this index? * @param range */ keyCursor(range: any): AsyncIterable; }