export declare class RawFlock {
  constructor(peerId: string);
  static fromJson(bundle: unknown, peerId: string): RawFlock;
  static fromFile(peerId: string, bytes: Uint8Array): RawFlock;
  peerId(): string;
  setPeerId(peerId: string): void;
  getMaxPhysicalTime(): number;
  put(key: unknown, value: unknown, now?: number): void;
  putWithMeta(
    key: unknown,
    value: unknown,
    metadata?: unknown,
    now?: number,
  ): void;
  delete(key: unknown, now?: number): void;
  get(key: unknown): unknown;
  getEntry(key: unknown): unknown;
  scan(start?: unknown, end?: unknown, prefix?: unknown): unknown;
  exportJson(
    from?: unknown,
    pruneTombstonesBefore?: number,
    peerId?: string,
  ): unknown;
  importJson(bundle: unknown): unknown;
  merge(other: RawFlock): unknown;
  version(): unknown;
  inclusiveVersion(): unknown;
  exportFile(): Uint8Array;
  subscribe(listener: (batch: unknown) => void): number;
  unsubscribe(id: number): boolean;
  txnBegin(): void;
  txnCommit(): void;
  txnRollback(): void;
  isInTxn(): boolean;
}

export declare function callPendingEvents(): void;
