UNPKG

xitdb

Version:
29 lines (28 loc) 1.24 kB
import { Slot } from './slot'; import type { Slotted } from './slotted'; import { ReadCursor, CursorIterator, KeyValuePairCursor } from './read-cursor'; import { Bytes } from './writeable-data'; export declare class ReadHashMap 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; getKeyCursor(key: string): ReadCursor | null; getKeyCursor(key: Bytes): ReadCursor | null; getKeyCursor(hash: Uint8Array): ReadCursor | null; getKeySlot(key: string): Slot | null; getKeySlot(key: Bytes): Slot | null; getKeySlot(hash: Uint8Array): Slot | null; getKeyValuePair(key: string): KeyValuePairCursor | null; getKeyValuePair(key: Bytes): KeyValuePairCursor | null; getKeyValuePair(hash: Uint8Array): KeyValuePairCursor | null; protected resolveHash(key: string | Bytes | Uint8Array): Uint8Array; }