UNPKG

xitdb

Version:
20 lines (19 loc) 747 B
import { Slot } from './slot'; import type { Slotted } from './slotted'; import { ReadCursor, CursorIterator } from './read-cursor'; import { Bytes } from './writeable-data'; export declare class ReadHashSet implements Slotted { cursor: ReadCursor; constructor(); constructor(cursor: ReadCursor); slot(): Slot; iterator(): CursorIterator; [Symbol.iterator](): Iterator<ReadCursor>; getCursor(key: string): ReadCursor | null; getCursor(key: Bytes): ReadCursor | null; getCursor(hash: Uint8Array): ReadCursor | null; getSlot(key: string): Slot | null; getSlot(key: Bytes): Slot | null; getSlot(hash: Uint8Array): Slot | null; protected resolveHash(key: string | Bytes | Uint8Array): Uint8Array; }