UNPKG

xitdb

Version:
21 lines (20 loc) 809 B
import { ReadHashSet } from './read-hash-set'; import { WriteCursor, WriteCursorIterator } from './write-cursor'; import type { WriteableData } from './writeable-data'; import { Bytes } from './writeable-data'; export declare class WriteHashSet extends ReadHashSet { constructor(cursor: WriteCursor, counted?: boolean); iterator(): WriteCursorIterator; [Symbol.iterator](): Iterator<WriteCursor>; put(key: string): void; put(key: Bytes): void; put(hash: Uint8Array, data: WriteableData): void; putCursor(key: string): WriteCursor; putCursor(key: Bytes): WriteCursor; putCursor(hash: Uint8Array): WriteCursor; remove(key: string): boolean; remove(key: Bytes): boolean; remove(hash: Uint8Array): boolean; private putInternal; private putCursorInternal; }